Played nicer when the window is hidden.

This commit is contained in:
Guillaume Melquiond 2009-08-14 08:44:18 +00:00
parent e76e4348c3
commit e48c947cd6

View File

@ -206,7 +206,7 @@ void controller_base::play_slice(bool is_delay_enabled)
get_mouse_handler_base().mouse_update(browse_);
}
if (is_delay_enabled){
get_display().delay(20);
get_display().delay((SDL_GetAppState() & SDL_APPACTIVE) != 0 ? 20 : 200);
}
}
slice_end();