mirror of
https://github.com/libretro/RetroArch
synced 2025-02-26 06:40:39 +00:00
Update sdl2_gfx.c
This commit is contained in:
parent
923dc52f87
commit
d717f3537a
@ -490,12 +490,11 @@ static bool sdl2_gfx_frame(void *data, const void *frame, unsigned width,
|
|||||||
char title[128];
|
char title[128];
|
||||||
sdl2_video_t *vid = (sdl2_video_t*)data;
|
sdl2_video_t *vid = (sdl2_video_t*)data;
|
||||||
bool menu_is_alive = video_info->menu_is_alive;
|
bool menu_is_alive = video_info->menu_is_alive;
|
||||||
bool libretro_running = video_info->libretro_running;
|
|
||||||
|
|
||||||
if (vid->should_resize)
|
if (vid->should_resize)
|
||||||
sdl_refresh_viewport(vid);
|
sdl_refresh_viewport(vid);
|
||||||
|
|
||||||
if (frame && libretro_running)
|
if (frame)
|
||||||
{
|
{
|
||||||
SDL_RenderClear(vid->renderer);
|
SDL_RenderClear(vid->renderer);
|
||||||
sdl_refresh_input_size(vid, false, vid->video.rgb32, width, height, pitch);
|
sdl_refresh_input_size(vid, false, vid->video.rgb32, width, height, pitch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user