From 2473584759616c3a6b664bf4a5023067a162206e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 21 Sep 2022 12:20:56 +0900 Subject: [PATCH] [vid] Clean out an unused variable from context_win It's dead, Jim. --- libs/video/targets/context_win.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/video/targets/context_win.c b/libs/video/targets/context_win.c index ce9eb87b5..207278f0a 100644 --- a/libs/video/targets/context_win.c +++ b/libs/video/targets/context_win.c @@ -222,7 +222,6 @@ static qboolean startwindowed = 0; //static qboolean windowed_mode_set; //static int vid_fulldib_on_focus_mode; static qboolean force_minimized; -static qboolean in_mode_set; static qboolean force_mode_set; static qboolean vid_mode_set; //static HICON hIcon; @@ -663,7 +662,6 @@ VID_RestoreOldMode (int original_mode) if (inerror) return; - in_mode_set = false; inerror = true; // make sure mode set happens (video mode changes) vid_modenum = original_mode - 1; @@ -738,8 +736,6 @@ VID_SetMode (int modenum, const byte *palette) if (!force_mode_set && (modenum == vid_modenum)) return true; - // so Con_Printfs don't mess us up by forcing vid and snd updates - in_mode_set = true; //FIXME CDAudio_Pause (); //FIXME S_ClearBuffer (); @@ -812,8 +808,6 @@ VID_SetMode (int modenum, const byte *palette) Sys_Printf ("%s\n", VID_GetModeDescription (vid_modenum)); - in_mode_set = false; - viddef.recalc_refdef = 1; //FIXME SCR_StretchInit(); @@ -886,8 +880,6 @@ Win_CreateWindow (int width, int height) Sys_Printf ("%s\n", VID_GetModeDescription (vid_modenum)); - in_mode_set = false; - viddef.recalc_refdef = 1; }