summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_glimp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r--src/sdl/sdl_glimp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c
index 41114ca9..babbaade 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -93,7 +93,7 @@ void GLimp_Shutdown( void )
{
float oldDisplayAspect = glConfig.displayAspect;
- IN_Shutdown();
+ ri.IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
screen = NULL;
@@ -484,10 +484,10 @@ static qboolean GLimp_StartDriverAndSetMode( qboolean failSafe, qboolean fullscr
SDL_VideoDriverName( driverName, sizeof( driverName ) - 1 );
ri.Printf( PRINT_ALL, "SDL using driver \"%s\"\n", driverName );
- Cvar_Set( "r_sdlDriver", driverName );
+ ri.Cvar_Set( "r_sdlDriver", driverName );
}
- if (fullscreen && Cvar_VariableIntegerValue( "in_nograb" ) )
+ if (fullscreen && ri.Cvar_VariableIntegerValue( "in_nograb" ) )
{
ri.Printf( PRINT_ALL, "Fullscreen not allowed with in_nograb 1\n");
ri.Cvar_Set( "r_fullscreen", "0" );
@@ -704,7 +704,7 @@ void GLimp_Init( void )
r_allowResize = ri.Cvar_Get( "r_allowResize", "0", CVAR_ARCHIVE );
r_centerWindow = ri.Cvar_Get( "r_centerWindow", "0", CVAR_ARCHIVE );
- if( Cvar_VariableIntegerValue( "com_abnormalExit" ) )
+ if( ri.Cvar_VariableIntegerValue( "com_abnormalExit" ) )
{
ri.Cvar_Set( "r_width", va( "%d", R_FAILSAFE_WIDTH ) );
ri.Cvar_Set( "r_height", va( "%d", R_FAILSAFE_HEIGHT ) );
@@ -713,16 +713,16 @@ void GLimp_Init( void )
ri.Cvar_Set( "com_abnormalExit", "0" );
}
- Sys_SetEnv( "SDL_VIDEO_CENTERED", r_centerWindow->integer ? "1" : "" );
+ ri.Sys_SetEnv( "SDL_VIDEO_CENTERED", r_centerWindow->integer ? "1" : "" );
- Sys_GLimpInit( );
+ ri.Sys_GLimpInit( );
// Create the window and set up the context
if( GLimp_StartDriverAndSetMode( qfalse, r_fullscreen->integer, r_noborder->integer ) )
goto success;
// Try again, this time in a platform specific "safe mode"
- Sys_GLimpSafeInit( );
+ ri.Sys_GLimpSafeInit( );
if( GLimp_StartDriverAndSetMode( qfalse, r_fullscreen->integer, qfalse ) )
goto success;
@@ -760,7 +760,7 @@ success:
ri.Cvar_Get( "r_availableModes", "", CVAR_ROM );
// This depends on SDL_INIT_VIDEO, hence having it here
- IN_Init( );
+ ri.IN_Init( );
}
@@ -791,7 +791,7 @@ void GLimp_EndFrame( void )
// Find out the current state
fullscreen = !!( s->flags & SDL_FULLSCREEN );
- if( r_fullscreen->integer && Cvar_VariableIntegerValue( "in_nograb" ) )
+ if( r_fullscreen->integer && ri.Cvar_VariableIntegerValue( "in_nograb" ) )
{
ri.Printf( PRINT_ALL, "Fullscreen not allowed with in_nograb 1\n");
ri.Cvar_Set( "r_fullscreen", "0" );
@@ -809,9 +809,9 @@ void GLimp_EndFrame( void )
{
// SDL_WM_ToggleFullScreen didn't work, so do it the slow way
if( !sdlToggled )
- Cbuf_AddText( "vid_restart" );
+ ri.Cmd_ExecuteText(EXEC_APPEND, "vid_restart");
- IN_Restart( );
+ ri.IN_Restart( );
}
r_fullscreen->modified = qfalse;