gfx_widgets_iterate - cleanup

This commit is contained in:
twinaphex 2020-10-02 11:32:49 +02:00
parent c736f2ce28
commit a38ecbe7de
3 changed files with 4 additions and 1 deletions

View File

@ -890,6 +890,7 @@ static void gfx_widgets_layout(
void gfx_widgets_iterate(
void *data,
void *data_disp,
unsigned width, unsigned height, bool fullscreen,
const char *dir_assets, char *font_path,
bool is_threaded)
@ -900,7 +901,7 @@ void gfx_widgets_iterate(
* factor have changed */
float scale_factor = 0.0f;
#ifdef HAVE_XMB
gfx_display_t *p_disp = disp_get_ptr();
gfx_display_t *p_disp = (gfx_display_t*)data_disp;
enum menu_driver_id_type type = p_disp->menu_driver_id;
if (type == MENU_DRIVER_ID_XMB)
scale_factor = gfx_display_get_widget_pixel_scale(width, height, fullscreen);

View File

@ -323,6 +323,7 @@ void gfx_widget_volume_update_and_show(float new_volume,
void gfx_widgets_iterate(
void *data,
void *data_disp,
unsigned width, unsigned height, bool fullscreen,
const char *dir_assets, char *font_path,
bool is_threaded);

View File

@ -39313,6 +39313,7 @@ static enum runloop_state runloop_check_state(
RUNLOOP_MSG_QUEUE_LOCK();
gfx_widgets_iterate(
&p_rarch->dispwidget_st,
&p_rarch->dispgfx,
p_rarch->video_driver_width,
p_rarch->video_driver_height,
video_is_fullscreen,