pause the game when window is minimized.

closes #911
This commit is contained in:
David Carlier 2022-10-08 18:03:03 +01:00
parent e29d37956a
commit 9298c3abc8

View file

@ -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: