mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
(Qt) Process events is already called in runloop_iterate - we
will take it out of Qt application run function and rely on runloop_iterate's 'runloop_check_state' leaf function to call Qt's event processing instead
This commit is contained in:
parent
d06ce4df13
commit
1bfd4b8ae2
15
retroarch.c
15
retroarch.c
@ -19360,6 +19360,14 @@ static enum runloop_state runloop_check_state(
|
||||
/* Should be called once per frame */
|
||||
if (!appletMainLoop())
|
||||
return RUNLOOP_STATE_QUIT;
|
||||
#else
|
||||
if (!video_driver_is_threaded_internal())
|
||||
{
|
||||
const ui_application_t *application = ui_companion
|
||||
? ui_companion->application : NULL;
|
||||
if (application)
|
||||
application->process_events();
|
||||
}
|
||||
#endif
|
||||
|
||||
BIT256_CLEAR_ALL_PTR(¤t_bits);
|
||||
@ -19400,13 +19408,6 @@ static enum runloop_state runloop_check_state(
|
||||
}
|
||||
}
|
||||
|
||||
if (!video_driver_is_threaded_internal())
|
||||
{
|
||||
const ui_application_t *application = ui_companion
|
||||
? ui_companion->application : NULL;
|
||||
if (application)
|
||||
application->process_events();
|
||||
}
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
if (menu_driver_binding_state)
|
||||
|
@ -154,14 +154,10 @@ static void ui_application_qt_quit(void)
|
||||
static void ui_application_qt_run(void *args)
|
||||
{
|
||||
#ifdef HAVE_MAIN
|
||||
int ret;
|
||||
unsigned sleep_ms = 0;
|
||||
|
||||
do
|
||||
{
|
||||
ui_application_qt_process_events();
|
||||
|
||||
ret = runloop_iterate(&sleep_ms);
|
||||
unsigned sleep_ms = 0;
|
||||
int ret = runloop_iterate(&sleep_ms);
|
||||
|
||||
if (ret == 1 && sleep_ms > 0)
|
||||
retro_sleep(sleep_ms);
|
||||
|
Loading…
x
Reference in New Issue
Block a user