(GLUI) Always query dpi

This commit is contained in:
Higor Eurípedes 2015-07-15 18:50:36 -03:00
parent eb406c7a91
commit 9b019dbc1e

View File

@ -527,11 +527,7 @@ static void glui_layout(menu_handle_t *menu, glui_handle_t *glui)
resolution, so we should be dpi aware to ensure the entries hitboxes are big
enough. On desktops, we just care about readability, with every widget size
proportional to the display width. */
#ifdef RARCH_MOBILE
scale_factor = menu_display_get_dpi();
#else
scale_factor = width / 7.5;
#endif
glui->line_height = scale_factor / 3;
glui->margin = scale_factor / 6;