mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Rewrite menu_display_unset_viewport
This commit is contained in:
parent
afd4494c2f
commit
00adc9a2d3
7 changed files with 7 additions and 9 deletions
|
@ -1426,7 +1426,7 @@ static void mui_frame(void *data, video_frame_info_t *video_info)
|
|||
height);
|
||||
|
||||
menu_display_restore_clear_color();
|
||||
menu_display_unset_viewport();
|
||||
menu_display_unset_viewport(video_info->width, video_info->height);
|
||||
}
|
||||
|
||||
static void mui_layout(mui_handle_t *mui)
|
||||
|
|
|
@ -364,7 +364,7 @@ static void nk_menu_frame(void *data, video_frame_info_t *video_info)
|
|||
height);
|
||||
|
||||
menu_display_restore_clear_color();
|
||||
menu_display_unset_viewport();
|
||||
menu_display_unset_viewport(video_info->width, video_info->height);
|
||||
}
|
||||
|
||||
static void nk_menu_free(void *data)
|
||||
|
|
|
@ -2904,7 +2904,7 @@ static void xmb_frame(void *data, video_frame_info_t *video_info)
|
|||
height);
|
||||
}
|
||||
|
||||
menu_display_unset_viewport();
|
||||
menu_display_unset_viewport(video_info->width, video_info->height);
|
||||
}
|
||||
|
||||
static void xmb_layout_ps3(xmb_handle_t *xmb, int width)
|
||||
|
|
|
@ -445,7 +445,7 @@ static void xui_frame(void *data, video_frame_info_t *video_info)
|
|||
|
||||
XuiRenderEnd( app.GetDC() );
|
||||
|
||||
menu_display_unset_viewport();
|
||||
menu_display_unset_viewport(video_info->width, video_info->height);
|
||||
}
|
||||
|
||||
static void blit_line(int x, int y, const char *message, bool green)
|
||||
|
|
|
@ -983,7 +983,7 @@ static void zarch_frame(void *data, video_frame_info_t *video_info)
|
|||
zui->rendering = false;
|
||||
|
||||
menu_display_font_flush_block((font_data_t*)zui->font);
|
||||
menu_display_unset_viewport();
|
||||
menu_display_unset_viewport(video_info->width, video_info->height);
|
||||
}
|
||||
|
||||
static void *zarch_init(void **userdata)
|
||||
|
|
|
@ -402,10 +402,8 @@ void menu_display_set_viewport(unsigned width, unsigned height)
|
|||
video_driver_set_viewport(width, height, true, false);
|
||||
}
|
||||
|
||||
void menu_display_unset_viewport(void)
|
||||
void menu_display_unset_viewport(unsigned width, unsigned height)
|
||||
{
|
||||
unsigned width, height;
|
||||
video_driver_get_size(&width, &height);
|
||||
video_driver_set_viewport(width, height, false, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ bool menu_display_get_font_data_init(void);
|
|||
void menu_display_set_font_data_init(bool state);
|
||||
bool menu_display_get_update_pending(void);
|
||||
void menu_display_set_viewport(unsigned width, unsigned height);
|
||||
void menu_display_unset_viewport(void);
|
||||
void menu_display_unset_viewport(unsigned width, unsigned height);
|
||||
bool menu_display_get_framebuffer_dirty_flag(void);
|
||||
void menu_display_set_framebuffer_dirty_flag(void);
|
||||
void menu_display_unset_framebuffer_dirty_flag(void);
|
||||
|
|
Loading…
Add table
Reference in a new issue