mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 01:47:13 +00:00
Played nicer when the window is hidden.
This commit is contained in:
parent
e76e4348c3
commit
e48c947cd6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user