From 2eddce5713b23ac291966d06bbc518bf2462491a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 21 Jan 2006 05:08:08 +0000 Subject: [PATCH] Tweek moodle's complaint. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1887 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/renderer.c | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/engine/client/renderer.c b/engine/client/renderer.c index 1d3f7a6f6..8b5caf84e 100644 --- a/engine/client/renderer.c +++ b/engine/client/renderer.c @@ -1887,27 +1887,22 @@ TRACE(("dbg: R_RestartRenderer_f\n")); } else { - //failed, try dedicated as a last ditch effort to avoid having to edit configs. - newr.renderer = QR_NONE; - if (R_ApplyRenderer(&newr)) + Con_Printf("^1Attempting default refresh rate\n"); + newr.rate = 0; + if (!R_ApplyRenderer(&oldr)) { - TRACE(("dbg: R_RestartRenderer_f going to dedicated\n")); - - if (vid_refreshrate.value != 0) + if (R_ApplyRenderer(&newr)) { - Con_Printf("================================\n"); - Con_Printf("^1Attempting 60Hz\n"); - vid_refreshrate.value = 60; - Cmd_ExecuteString("vid_restart", RESTRICT_LOCAL); - Con_Printf("================================\n"); - } + TRACE(("dbg: R_RestartRenderer_f going to dedicated\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();