summaryrefslogtreecommitdiff
path: root/source/cl_ref.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-04-23 15:02:41 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-04-23 15:02:41 +0000
commit49e6170b49fbb933eddec6d0e3f946320c68832f (patch)
tree88d228d6f89103710074fdba041ce80584d5caa6 /source/cl_ref.c
parent8c795585fb0c6c9178d9981f6943da04b7279205 (diff)
Added `dumpents' server command.
Added support for `cl_noskins' value of 2 (default all female skins to `female/athena', all male skins to `male/grunt'). Renamed `scoreshot' command to `aashot', added `aadump' command. Fixed several alignment issues on ARM architecture. Server browser menu now indicates full and password protected servers with color codes. Implemented history search in console with Ctrl+R, Ctrl+S. Removed `cl_railtrail_alpha' variable, all `cl_rail*_color' variables now accept colors in #RRGGBBAA format. Added `map_override' cvar (enables loading map entity lump from external maps/*.ent file). Made `quit' command accept extra arguments. Made `draw' command accept arbitrary colors in #RRGGBBAA format. Fixed debian packages.
Diffstat (limited to 'source/cl_ref.c')
-rw-r--r--source/cl_ref.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/source/cl_ref.c b/source/cl_ref.c
index 6fcc92a..bcce301 100644
--- a/source/cl_ref.c
+++ b/source/cl_ref.c
@@ -393,7 +393,7 @@ void CL_InitRefresh( void ) {
Cvar_Set( "_vid_fullscreen", "1" );
}
-#ifdef REF_HARD_LINKED
+#if REF_HARD_LINKED
vid_ref = Cvar_Get( "vid_ref", DEFAULT_REFRESH_DRIVER, CVAR_ROM );
if( !CL_LoadRefresh( "ref_" DEFAULT_REFRESH_DRIVER ) ) {
Com_Error( ERR_FATAL, "Couldn't load built-in video driver!" );
@@ -417,16 +417,22 @@ void CL_InitRefresh( void ) {
Com_Printf( "Falling back to default refresh...\n" );
Cvar_Set( "vid_ref", DEFAULT_REFRESH_DRIVER );
}
-#endif
+ vid_ref->changed = vid_ref_changed;
+#endif
vid_placement->changed = vid_placement_changed;
vid_fullscreen->changed = vid_fullscreen_changed;
vid_modelist->changed = vid_modelist_changed;
-#ifndef REF_HARD_LINKED
- vid_ref->changed = vid_ref_changed;
-#endif
mode_changed = 0;
+
+ // Initialize the rest of graphics subsystems
+ V_Init();
+ SCR_Init();
+ CL_InitUI();
+
+ SCR_RegisterMedia();
+ Con_RegisterMedia();
}
/*
@@ -439,10 +445,15 @@ void CL_ShutdownRefresh( void ) {
return;
}
+ // Shutdown the rest of graphics subsystems
+ V_Shutdown();
+ SCR_Shutdown();
+ CL_ShutdownUI();
+
vid_placement->changed = NULL;
vid_fullscreen->changed = NULL;
vid_modelist->changed = NULL;
-#ifndef REF_HARD_LINKED
+#if !REF_HARD_LINKED
vid_ref->changed = NULL;
#endif
@@ -450,6 +461,7 @@ void CL_ShutdownRefresh( void ) {
CL_FreeRefresh();
Z_LeakTest( TAG_RENDERER );
+
}