From 9e08cdb16a588c81f2ac2372347223b56886b512 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 03:21:45 +0200 Subject: [PATCH] SDL_FALSE/TRUE for SDL_SetWindowGrab --- code/sdl/sdl_input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index 1264ef0d..8238e668 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -321,7 +321,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( ); } @@ -332,9 +332,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; } @@ -365,7 +365,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