Stop using small wrapper functions in gfx_display

This commit is contained in:
twinaphex 2020-09-23 20:36:25 +02:00
parent 7938a5e3ac
commit a0ae6be35b
3 changed files with 9 additions and 6 deletions

View File

@ -3435,6 +3435,7 @@ static void materialui_render(void *data,
settings->uints.gfx_thumbnail_upscale_threshold;
bool network_on_demand_thumbnails =
settings->bools.network_on_demand_thumbnails;
gfx_display_t *p_disp = disp_get_ptr();
if (!mui || !list)
return;
@ -3500,8 +3501,8 @@ static void materialui_render(void *data,
/* Need to update this each frame, otherwise touchscreen
* input breaks when changing orientation */
gfx_display_set_width(width);
gfx_display_set_height(height);
p_disp->framebuf_width = width;
p_disp->framebuf_height = height;
/* Read pointer state */
menu_input_get_pointer_state(&mui->pointer);

View File

@ -1548,6 +1548,7 @@ static void ozone_render(void *data,
bool pointer_enabled = false;
unsigned language = *msg_hash_get_uint(MSG_HASH_USER_LANGUAGE);
ozone_handle_t *ozone = (ozone_handle_t*)data;
gfx_display_t *p_disp = disp_get_ptr();
if (!ozone)
return;
@ -1587,8 +1588,8 @@ static void ozone_render(void *data,
/* Need to update this each frame, otherwise touchscreen
* input breaks when changing orientation */
gfx_display_set_width(width);
gfx_display_set_height(height);
p_disp->framebuf_width = width;
p_disp->framebuf_height = height;
/* Read pointer state */
menu_input_get_pointer_state(&ozone->pointer);

View File

@ -3814,6 +3814,7 @@ static void xmb_render(void *data,
xmb_handle_t *xmb = (xmb_handle_t*)data;
settings_t *settings = config_get_ptr();
unsigned end = (unsigned)menu_entries_get_size();
gfx_display_t *p_disp = disp_get_ptr();
if (!xmb)
return;
@ -3834,8 +3835,8 @@ static void xmb_render(void *data,
/* This must be set every frame when using a pointer,
* otherwise touchscreen input breaks when changing
* orientation */
gfx_display_set_width(width);
gfx_display_set_height(height);
p_disp->framebuf_width = width;
p_disp->framebuf_height = height;
/* Read pointer state */
menu_input_get_pointer_state(&xmb->pointer);