aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:02:54 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-21 22:02:54 +0000
commit98228cce0dfe6591dc1b3a1c44852be0ca2adb4f (patch)
treebc6877fd3c06a4b8fc246d874737f195ec9713b5 /code/sdl
parentae6f1c7f5d75be89cb177c114fb184f0ed34ef6e (diff)
downloadioquake3-aero-98228cce0dfe6591dc1b3a1c44852be0ca2adb4f.tar.gz
ioquake3-aero-98228cce0dfe6591dc1b3a1c44852be0ca2adb4f.zip
* 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
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;