[quake3-commits] r1736 - trunk/code/sdl
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Nov 6 10:34:05 EST 2009
Author: tma
Date: 2009-11-06 10:34:05 -0500 (Fri, 06 Nov 2009)
New Revision: 1736
Modified:
trunk/code/sdl/sdl_glimp.c
Log:
* Make window centering optional, defaulting to off
Modified: trunk/code/sdl/sdl_glimp.c
===================================================================
--- trunk/code/sdl/sdl_glimp.c 2009-11-06 12:02:02 UTC (rev 1735)
+++ trunk/code/sdl/sdl_glimp.c 2009-11-06 15:34:05 UTC (rev 1736)
@@ -73,6 +73,7 @@
cvar_t *r_allowSoftwareGL; // Don't abort out if a hardware visual can't be obtained
cvar_t *r_allowResize; // make window resizable
+cvar_t *r_centerWindow;
cvar_t *r_sdlDriver;
void (APIENTRYP qglActiveTextureARB) (GLenum texture);
@@ -670,8 +671,9 @@
r_allowSoftwareGL = ri.Cvar_Get( "r_allowSoftwareGL", "0", CVAR_LATCH );
r_sdlDriver = ri.Cvar_Get( "r_sdlDriver", "", CVAR_ROM );
r_allowResize = ri.Cvar_Get( "r_allowResize", "0", CVAR_ARCHIVE );
+ r_centerWindow = ri.Cvar_Get( "r_centerWindow", "0", CVAR_ARCHIVE );
- Sys_SetEnv("SDL_VIDEO_CENTERED", "1");
+ Sys_SetEnv( "SDL_VIDEO_CENTERED", r_centerWindow->integer ? "1" : "" );
Sys_GLimpInit( );
More information about the quake3-commits
mailing list