mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Merge pull request #6564 from Tatsuya79/patch-1
MUI Scale mouse cursor like icons.
This commit is contained in:
commit
38525e1e8f
@ -1778,6 +1778,7 @@ static void materialui_layout(materialui_handle_t *mui, bool video_is_threaded)
|
||||
|
||||
static void *materialui_init(void **userdata, bool video_is_threaded)
|
||||
{
|
||||
float scale_factor = menu_display_get_dpi();
|
||||
materialui_handle_t *mui = NULL;
|
||||
menu_handle_t *menu = (menu_handle_t*)
|
||||
calloc(1, sizeof(*menu));
|
||||
@ -1794,7 +1795,7 @@ static void *materialui_init(void **userdata, bool video_is_threaded)
|
||||
goto error;
|
||||
|
||||
*userdata = mui;
|
||||
mui->cursor_size = 64.0;
|
||||
mui->cursor_size = scale_factor / 3;
|
||||
mui->need_compute = false;
|
||||
|
||||
return menu;
|
||||
|
Loading…
Reference in New Issue
Block a user