diff options
author | Pan7 <panter@gmx.net> | 2015-07-26 03:21:45 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:02:31 +0100 |
commit | f3d9ff7b490b6f3ce355e3f4441f7758340a096b (patch) | |
tree | 501d9500bf282dc1e1e00a08ccc473b12c51e2aa /src | |
parent | 95cc01fb25e20822fe9b091702789111cc5d1b8b (diff) |
SDL_FALSE/TRUE for SDL_SetWindowGrab
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl/sdl_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index fbe90d08..700834c2 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -366,7 +366,7 @@ static void IN_ActivateMouse( void ) if( !mouseActive ) { SDL_SetRelativeMouseMode( SDL_TRUE ); - SDL_SetWindowGrab( SDL_window, 1 ); + SDL_SetWindowGrab( SDL_window, SDL_TRUE ); IN_GobbleMotionEvents( ); } @@ -377,9 +377,9 @@ static void IN_ActivateMouse( void ) if( in_nograb->modified || !mouseActive ) { if( in_nograb->integer ) - SDL_SetWindowGrab( SDL_window, 0 ); + SDL_SetWindowGrab( SDL_window, SDL_FALSE ); else - SDL_SetWindowGrab( SDL_window, 1 ); + SDL_SetWindowGrab( SDL_window, SDL_TRUE ); in_nograb->modified = qfalse; } @@ -416,7 +416,7 @@ static void IN_DeactivateMouse( void ) { IN_GobbleMotionEvents( ); - SDL_SetWindowGrab( SDL_window, 0 ); + SDL_SetWindowGrab( SDL_window, SDL_FALSE ); SDL_SetRelativeMouseMode( SDL_FALSE ); // Don't warp the mouse unless the cursor is within the window |