engine: platform: sdl: fix build after last PR
This commit is contained in:
parent
6087d43043
commit
97455e7fd4
1 changed files with 3 additions and 3 deletions
|
@ -481,6 +481,7 @@ static void SDLash_EventHandler( SDL_Event *event )
|
||||||
switch( event->window.event )
|
switch( event->window.event )
|
||||||
{
|
{
|
||||||
case SDL_WINDOWEVENT_MOVED:
|
case SDL_WINDOWEVENT_MOVED:
|
||||||
|
{
|
||||||
char val[32];
|
char val[32];
|
||||||
|
|
||||||
Q_snprintf( val, sizeof( val ), "%d", event->window.data1 );
|
Q_snprintf( val, sizeof( val ), "%d", event->window.data1 );
|
||||||
|
@ -490,10 +491,9 @@ static void SDLash_EventHandler( SDL_Event *event )
|
||||||
Cvar_DirectSet( &window_ypos, val );
|
Cvar_DirectSet( &window_ypos, val );
|
||||||
|
|
||||||
if ( vid_fullscreen.value == WINDOW_MODE_WINDOWED )
|
if ( vid_fullscreen.value == WINDOW_MODE_WINDOWED )
|
||||||
{
|
|
||||||
Cvar_DirectSet( &vid_maximized, "0" );
|
Cvar_DirectSet( &vid_maximized, "0" );
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case SDL_WINDOWEVENT_MINIMIZED:
|
case SDL_WINDOWEVENT_MINIMIZED:
|
||||||
host.status = HOST_SLEEP;
|
host.status = HOST_SLEEP;
|
||||||
Cvar_DirectSet( &vid_maximized, "0" );
|
Cvar_DirectSet( &vid_maximized, "0" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue