mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
gdi: fix closing window via X button
This commit is contained in:
parent
02cb0fc583
commit
130203c431
@ -356,7 +356,8 @@ static bool gdi_gfx_alive(void *data)
|
||||
unsigned temp_height = 0;
|
||||
bool quit = false;
|
||||
bool resize = false;
|
||||
|
||||
bool ret = false;
|
||||
|
||||
/* Needed because some context drivers don't track their sizes */
|
||||
video_driver_get_size(&temp_width, &temp_height);
|
||||
|
||||
@ -365,12 +366,13 @@ static bool gdi_gfx_alive(void *data)
|
||||
size_data.width = &temp_width;
|
||||
size_data.height = &temp_height;
|
||||
|
||||
video_context_driver_check_window(&size_data);
|
||||
if (video_context_driver_check_window(&size_data))
|
||||
ret = !quit;
|
||||
|
||||
if (temp_width != 0 && temp_height != 0)
|
||||
video_driver_set_size(&temp_width, &temp_height);
|
||||
|
||||
return true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool gdi_gfx_focus(void *data)
|
||||
|
Loading…
Reference in New Issue
Block a user