(iOS) Buildfix

This commit is contained in:
twinaphex 2015-11-28 00:17:36 +01:00
parent 99ca95a100
commit 133b4754a4

View File

@ -71,12 +71,16 @@ static void rarch_draw_observer(CFRunLoopObserverRef observer,
CFRunLoopActivity activity, void *info)
{
bool is_idle;
bool sleeping = false;
unsigned sleep_ms = 0;
int ret = rarch_main_iterate(&sleep_ms);
if (ret == 1 && !ui_companion_is_on_foreground() && sleep_ms > 0)
{
sleeping = true;
retro_sleep(sleep_ms);
rarch_main_data_iterate();
}
rarch_main_data_iterate(sleeping);
if (ret == -1)
{