Re-revert this - causes issues with toggling fullscreen with threaded

video mode and GL driver
This commit is contained in:
twinaphex 2018-07-14 00:10:21 +02:00
parent 76cbd54420
commit 52a55695ce
2 changed files with 8 additions and 5 deletions

View File

@ -1045,12 +1045,7 @@ void win32_check_window(bool *quit, bool *resize,
unsigned *width, unsigned *height)
{
#if !defined(_XBOX)
const ui_application_t *application =
ui_companion_driver_get_application_ptr();
if (application)
application->process_events();
*quit = g_win32_quit;
#endif
if (g_win32_resized)
{
@ -1059,6 +1054,7 @@ void win32_check_window(bool *quit, bool *resize,
*height = g_win32_resize_height;
g_win32_resized = false;
}
#endif
}
bool win32_suppress_screensaver(void *data, bool enable)

View File

@ -2535,6 +2535,13 @@ static enum runloop_state runloop_check_state(
}
}
{
const ui_application_t *application =
ui_companion_driver_get_application_ptr();
if (application)
application->process_events();
}
video_driver_get_status(&frame_count, &is_alive, &is_focused);
#ifdef HAVE_MENU