void FGameConfigFile::SetRavenDefaults (bool isHexen) { UCVarValue val; if (bMigrating) { con_centernotify.ResetToDefault (); msg0color.ResetToDefault (); color.ResetToDefault (); } val.Bool = false; wi_percents.SetGenericRepDefault (val, CVAR_Bool); val.Bool = true; con_centernotify.SetGenericRepDefault (val, CVAR_Bool); snd_pitched.SetGenericRepDefault (val, CVAR_Bool); val.Int = 9; msg0color.SetGenericRepDefault (val, CVAR_Int); val.Int = CR_WHITE; msgmidcolor.SetGenericRepDefault (val, CVAR_Int); val.Int = CR_YELLOW; msgmidcolor2.SetGenericRepDefault (val, CVAR_Int); val.Int = 0x543b17; am_wallcolor.SetGenericRepDefault (val, CVAR_Int); val.Int = 0xd0b085; am_fdwallcolor.SetGenericRepDefault (val, CVAR_Int); val.Int = 0x734323; am_cdwallcolor.SetGenericRepDefault (val, CVAR_Int); // Fix the Heretic/Hexen automap colors so they are correct. // (They were wrong on older versions.) if (*am_wallcolor == 0x2c1808 && *am_fdwallcolor == 0x887058 && *am_cdwallcolor == 0x4c3820) { am_wallcolor.ResetToDefault (); am_fdwallcolor.ResetToDefault (); am_cdwallcolor.ResetToDefault (); } if (!isHexen) { val.Int = 0x3f6040; color.SetGenericRepDefault (val, CVAR_Int); } }
void I_InitGraphics () { UCVarValue val; val.Bool = !!Args->CheckParm ("-devparm"); ticker.SetGenericRepDefault (val, CVAR_Bool); Video = new SDLVideo (0); if (Video == NULL) I_FatalError ("Failed to initialize display"); atterm (I_ShutdownGraphics); Video->SetWindowedScale (vid_winscale); }
void I_InitGraphics () { if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0) { I_FatalError ("Could not initialize SDL video:\n%s\n", SDL_GetError()); return; } Printf("Using video driver %s\n", SDL_GetCurrentVideoDriver()); UCVarValue val; val.Bool = !!Args->CheckParm ("-devparm"); ticker.SetGenericRepDefault (val, CVAR_Bool); Video = new SDLVideo (0); if (Video == NULL) I_FatalError ("Failed to initialize display"); atterm (I_ShutdownGraphics); Video->SetWindowedScale (vid_winscale); }
void I_InitHardware () { UCVarValue val; val.Bool = !!Args.CheckParm ("-devparm"); ticker.SetGenericRepDefault (val, CVAR_Bool); if ( OPENGL_GetCurrentRenderer( ) == RENDERER_OPENGL ) Video = new OpenGLVideo( ); else Video = new Win32Video (0); if (Video == NULL) I_FatalError ("Failed to initialize display"); if (!initialized) // [ZDoomGL] { atterm (I_ShutdownHardware); } Video->SetWindowedScale (vid_winscale); initialized = true; // [ZDoomGL] }