gdi: fix closing window via X button

This commit is contained in:
Brad Parker 2017-11-27 20:49:56 -05:00
parent 02cb0fc583
commit 130203c431

View File

@ -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)