mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 22:11:18 +00:00
* Make window centering optional, defaulting to off
This commit is contained in:
parent
223b851b7b
commit
c98df5ad58
1 changed files with 3 additions and 1 deletions
|
@ -73,6 +73,7 @@ static const SDL_VideoInfo *videoInfo = NULL;
|
|||
|
||||
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 @@ void GLimp_Init( void )
|
|||
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( );
|
||||
|
||||
|
|
Loading…
Reference in a new issue