mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Stop using small wrapper functions in gfx_display
This commit is contained in:
parent
7938a5e3ac
commit
a0ae6be35b
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user