Set com_minimized to 0 when the window is restored

This commit is contained in:
cmf028 2013-09-20 20:06:28 -05:00
parent d7444b8ca1
commit 7d83bba2d0

View file

@ -836,6 +836,7 @@ static void IN_ProcessEvents( void )
break;
case SDL_WINDOWEVENT_MINIMIZED: Cvar_SetValue( "com_minimized", 1 ); break;
case SDL_WINDOWEVENT_RESTORED:
case SDL_WINDOWEVENT_MAXIMIZED: Cvar_SetValue( "com_minimized", 0 ); break;
case SDL_WINDOWEVENT_FOCUS_LOST: Cvar_SetValue( "com_unfocused", 1 ); break;
case SDL_WINDOWEVENT_FOCUS_GAINED: Cvar_SetValue( "com_unfocused", 0 ); break;