aboutsummaryrefslogtreecommitdiffstats
path: root/code/sdl/sdl_glimp.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-09 13:20:00 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-08-09 13:20:00 +0000
commit2dd6f14b027fece75b79673a23a8b1b8f6793c1e (patch)
tree6ac8b7a5a70836aaded9125389c4f538ff8969f2 /code/sdl/sdl_glimp.c
parent29ed69737c5b5719649d1988217f6bbeb565de1a (diff)
downloadioquake3-aero-2dd6f14b027fece75b79673a23a8b1b8f6793c1e.tar.gz
ioquake3-aero-2dd6f14b027fece75b79673a23a8b1b8f6793c1e.zip
* Always show the mouse cursor when the mouse is disabled
* Rename IN_StartupJoystick to IN_InitJoystick, add IN_ShutdownJoystick * Add IN_Restart, which avoids calling IN_DeactivateMouse at the wrong time * Call IN_Restart when changing r_fullscreen * Add CVAR_ROM r_sdlDriver for easy checking of the SDL driver in use * Random README tweaks git-svn-id: svn://svn.icculus.org/quake3/trunk@1441 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sdl/sdl_glimp.c')
-rw-r--r--code/sdl/sdl_glimp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c
index 3135ebb..40c1e6d 100644
--- a/code/sdl/sdl_glimp.c
+++ b/code/sdl/sdl_glimp.c
@@ -78,6 +78,7 @@ typedef enum
static SDL_Surface *screen = NULL;
cvar_t *r_allowSoftwareGL; // Don't abort out if a hardware visual can't be obtained
+cvar_t *r_sdlDriver;
void (APIENTRYP qglActiveTextureARB) (GLenum texture);
void (APIENTRYP qglClientActiveTextureARB) (GLenum texture);
@@ -423,6 +424,7 @@ static qboolean GLimp_StartDriverAndSetMode( int mode, qboolean fullscreen )
SDL_VideoDriverName( driverName, sizeof( driverName ) - 1 );
ri.Printf( PRINT_ALL, "SDL using driver \"%s\"\n", driverName );
+ Cvar_Set( "r_sdlDriver", driverName );
}
if (fullscreen && Cvar_VariableIntegerValue( "in_nograb" ) )
@@ -642,6 +644,7 @@ void GLimp_Init( void )
qboolean success = qtrue;
r_allowSoftwareGL = ri.Cvar_Get( "r_allowSoftwareGL", "0", CVAR_LATCH );
+ r_sdlDriver = ri.Cvar_Get( "r_sdlDriver", "", CVAR_ROM );
Sys_GLimpInit( );
@@ -732,6 +735,8 @@ void GLimp_EndFrame( void )
if( !sdlToggled )
Cbuf_AddText( "vid_restart" );
+ IN_Restart( );
+
r_fullscreen->modified = qfalse;
}
}