From 98228cce0dfe6591dc1b3a1c44852be0ca2adb4f Mon Sep 17 00:00:00 2001 From: tma Date: Mon, 21 Jul 2008 22:02:54 +0000 Subject: * Use Sys_Sleep to limit FPS, which will save CPU * Add com_maxfpsUnfocused and com_maxfpsMinimized; self explanatory * Fix reopening of bug 3703, I hope git-svn-id: svn://svn.icculus.org/quake3/trunk@1431 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/sdl/sdl_input.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'code/sdl') 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; -- cgit v1.2.3