distribution/packages/emulators/standalone/retroarch/patches/0001-Increase-glui-size.patch

23 lines
1 KiB
Diff
Raw Normal View History

2022-02-05 14:23:32 +00:00
diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c
2023-08-17 14:46:48 +00:00
index d3ae5ec997..5ff5405b2a 100644
2022-02-05 14:23:32 +00:00
--- a/menu/drivers/materialui.c
+++ b/menu/drivers/materialui.c
2023-08-17 14:46:48 +00:00
@@ -3591,7 +3591,7 @@ static void materialui_render(void *data,
2022-02-05 14:23:32 +00:00
/* Check whether screen dimensions, menu scale
* factor or layout optimisation settings have changed */
scale_factor = gfx_display_get_dpi_scale(p_disp, settings,
- width, height, false, false);
+ width, height, false, false) * 2.000f;
2023-08-17 14:46:48 +00:00
if ( (scale_factor != mui->last_scale_factor)
|| (width != mui->last_width)
@@ -8133,7 +8133,7 @@ static void *materialui_init(void **userdata, bool video_is_threaded)
2022-02-05 14:23:32 +00:00
mui->last_height = height;
mui->last_scale_factor = gfx_display_get_dpi_scale(
p_disp, settings, width, height,
- false, false);
+ false, false) * 2.000f;
2023-08-17 14:46:48 +00:00
mui->dip_base_unit_size = mui->last_scale_factor
2022-02-05 14:23:32 +00:00
* MUI_DIP_BASE_UNIT_SIZE;
2023-08-17 14:46:48 +00:00
mui->flags = 0;