mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
gl_vidsdl.c: get rid of "modenum"
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@807 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
2196e0b350
commit
6e47e9e42d
1 changed files with 5 additions and 10 deletions
|
@ -67,7 +67,6 @@ static SDL_Surface *draw_context;
|
|||
static qboolean vid_locked = false; //johnfitz
|
||||
static qboolean vid_changed = false;
|
||||
|
||||
static int vid_modenum = MS_UNINIT;
|
||||
static int vid_default = MS_WINDOWED;
|
||||
static qboolean fullsbardraw = false;
|
||||
|
||||
|
@ -267,8 +266,6 @@ static int VID_SetMode (int modenum)
|
|||
BGM_Resume ();
|
||||
scr_disabled_for_loading = temp;
|
||||
|
||||
vid_modenum = modenum;
|
||||
|
||||
// fix the leftover Alt from any Alt-Tab or the like that switched us away
|
||||
ClearAllStates ();
|
||||
|
||||
|
@ -795,14 +792,12 @@ VID_DescribeCurrentMode_f
|
|||
*/
|
||||
static void VID_DescribeCurrentMode_f (void)
|
||||
{
|
||||
if (vid_modenum >= 0 && vid_modenum < nummodes)
|
||||
{
|
||||
if (draw_context)
|
||||
Con_Printf("%dx%dx%d %s\n",
|
||||
modelist[vid_modenum].width,
|
||||
modelist[vid_modenum].height,
|
||||
modelist[vid_modenum].bpp,
|
||||
(modelist[vid_modenum].type == MS_FULLSCREEN) ? "fullscreen" : "windowed");
|
||||
}
|
||||
draw_context->w,
|
||||
draw_context->h,
|
||||
draw_context->format->BitsPerPixel,
|
||||
draw_context->flags & SDL_FULLSCREEN ? "fullscreen" : "windowed");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue