aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'code/sdl')
-rw-r--r--code/sdl/sdl_input.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c
index d6005fb..6287f8e 100644
--- a/code/sdl/sdl_input.c
+++ b/code/sdl/sdl_input.c
@@ -348,7 +348,7 @@ static void IN_DeactivateMouse( void )
if( mouseActive )
{
SDL_WM_GrabInput( SDL_GRAB_OFF );
- SDL_WarpMouse( glConfig.vidWidth >> 1, glConfig.vidHeight >> 1 );
+ SDL_WarpMouse( glConfig.vidWidth / 2, glConfig.vidHeight / 2 );
SDL_ShowCursor( 1 );
mouseActive = qfalse;
@@ -716,15 +716,6 @@ static void IN_ProcessEvents( void )
}
break;
- case SDL_ACTIVEEVENT:
- if( e.active.state == SDL_APPINPUTFOCUS ) {
- if( e.active.gain )
- IN_ActivateMouse();
- else
- IN_DeactivateMouse();
- }
- break;
-
case SDL_QUIT:
Sys_Quit();
break;