mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Merge pull request #913 from devnexen/sdl_windowmin_pause
pause the game when window is minimized.
This commit is contained in:
commit
746f5ad21e
1 changed files with 4 additions and 0 deletions
|
@ -686,6 +686,10 @@ IN_Update(void)
|
|||
// be on another display now!
|
||||
glimp_refreshRate = -1;
|
||||
}
|
||||
else if (event.window.event == SDL_WINDOWEVENT_MINIMIZED)
|
||||
{
|
||||
Cvar_SetValue("paused", 1);
|
||||
}
|
||||
break;
|
||||
|
||||
case SDL_CONTROLLERBUTTONUP:
|
||||
|
|
Loading…
Reference in a new issue