Revert "Moved WIN32 message loop out of win32_check_window, and into just before the call to runloop_iterate"

This reverts commit 7108628369.
This commit is contained in:
twinaphex 2018-07-05 02:42:16 +02:00
parent 31e76458f7
commit c3d469dd8e
2 changed files with 6 additions and 7 deletions

View File

@ -138,12 +138,7 @@ int rarch_main(int argc, char *argv[], void *data)
do
{
unsigned sleep_ms = 0;
int ret;
const ui_application_t *application =
ui_companion_driver_get_application_ptr();
if (application)
application->process_events();
ret = runloop_iterate(&sleep_ms);
int ret = runloop_iterate(&sleep_ms);
if (ret == 1 && sleep_ms > 0)
retro_sleep(sleep_ms);

View File

@ -1117,7 +1117,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)
{
@ -1126,7 +1131,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)