Merge pull request #6564 from Tatsuya79/patch-1

MUI Scale mouse cursor like icons.
This commit is contained in:
Twinaphex 2018-04-12 18:58:50 +02:00 committed by GitHub
commit 38525e1e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;