1
0
Fork 0
forked from fte/fteqw

Tweek moodle's complaint.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1887 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-01-21 05:08:08 +00:00
parent 8f550d6d1f
commit 2eddce5713

View file

@ -1887,27 +1887,22 @@ TRACE(("dbg: R_RestartRenderer_f\n"));
} }
else else
{ {
//failed, try dedicated as a last ditch effort to avoid having to edit configs. Con_Printf("^1Attempting default refresh rate\n");
newr.renderer = QR_NONE; newr.rate = 0;
if (R_ApplyRenderer(&newr)) if (!R_ApplyRenderer(&oldr))
{ {
TRACE(("dbg: R_RestartRenderer_f going to dedicated\n")); if (R_ApplyRenderer(&newr))
if (vid_refreshrate.value != 0)
{ {
Con_Printf("================================\n"); TRACE(("dbg: R_RestartRenderer_f going to dedicated\n"));
Con_Printf("^1Attempting 60Hz\n");
vid_refreshrate.value = 60;
Cmd_ExecuteString("vid_restart", RESTRICT_LOCAL);
Con_Printf("================================\n");
}
Con_Printf("\n================================\n");
Con_Printf("^1Video mode switch failed. Old mode wasn't supported either. Console forced.\nChange vid_width, vid_height, vid_bpp, vid_displayfrequency to a compatable mode, and then use the setrenderer command.\n"); Con_Printf("\n================================\n");
Con_Printf("================================\n\n"); Con_Printf("^1Video mode switch failed. Old mode wasn't supported either. Console forced.\nChange vid_width, vid_height, vid_bpp, vid_displayfrequency to a compatable mode, and then use the setrenderer command.\n");
Con_Printf("================================\n\n");
}
else
Sys_Error("Couldn't fall back to previous renderer\n");
} }
else
Sys_Error("Couldn't fall back to previous renderer\n");
} }
} }
SCR_EndLoadingPlaque(); SCR_EndLoadingPlaque();