From abc6eb7d8c5ff39565776bd853827df3548706d3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 Jul 2018 00:22:52 +0200 Subject: [PATCH] Revert "Re-revert this - causes issues with toggling fullscreen with threaded" This reverts commit 52a55695ce8a8fab8f8ab5193abbb27c97cb601c. --- gfx/common/win32_common.c | 6 +++++- retroarch.c | 7 ------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index bc38d81da8..495e51c316 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -1045,7 +1045,12 @@ 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) { @@ -1054,7 +1059,6 @@ 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) diff --git a/retroarch.c b/retroarch.c index a4a02fb3e0..84451a1d9e 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2535,13 +2535,6 @@ 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