mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Moved WIN32 message loop out of win32_check_window, and into just before the call to runloop_iterate
This commit is contained in:
parent
63a071b85a
commit
7108628369
@ -138,7 +138,12 @@ int rarch_main(int argc, char *argv[], void *data)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
unsigned sleep_ms = 0;
|
unsigned sleep_ms = 0;
|
||||||
int ret = runloop_iterate(&sleep_ms);
|
int ret;
|
||||||
|
const ui_application_t *application =
|
||||||
|
ui_companion_driver_get_application_ptr();
|
||||||
|
if (application)
|
||||||
|
application->process_events();
|
||||||
|
ret = runloop_iterate(&sleep_ms);
|
||||||
|
|
||||||
if (ret == 1 && sleep_ms > 0)
|
if (ret == 1 && sleep_ms > 0)
|
||||||
retro_sleep(sleep_ms);
|
retro_sleep(sleep_ms);
|
||||||
|
@ -1117,12 +1117,7 @@ void win32_check_window(bool *quit, bool *resize,
|
|||||||
unsigned *width, unsigned *height)
|
unsigned *width, unsigned *height)
|
||||||
{
|
{
|
||||||
#if !defined(_XBOX)
|
#if !defined(_XBOX)
|
||||||
const ui_application_t *application =
|
|
||||||
ui_companion_driver_get_application_ptr();
|
|
||||||
if (application)
|
|
||||||
application->process_events();
|
|
||||||
*quit = g_win32_quit;
|
*quit = g_win32_quit;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (g_win32_resized)
|
if (g_win32_resized)
|
||||||
{
|
{
|
||||||
@ -1131,6 +1126,7 @@ void win32_check_window(bool *quit, bool *resize,
|
|||||||
*height = g_win32_resize_height;
|
*height = g_win32_resize_height;
|
||||||
g_win32_resized = false;
|
g_win32_resized = false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool win32_suppress_screensaver(void *data, bool enable)
|
bool win32_suppress_screensaver(void *data, bool enable)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user