mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +00:00
gl_vidsdl.c: get rid of "modenum"
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@807 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
2f19420417
commit
0a7c6f77de
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_locked = false; //johnfitz
|
||||||
static qboolean vid_changed = false;
|
static qboolean vid_changed = false;
|
||||||
|
|
||||||
static int vid_modenum = MS_UNINIT;
|
|
||||||
static int vid_default = MS_WINDOWED;
|
static int vid_default = MS_WINDOWED;
|
||||||
static qboolean fullsbardraw = false;
|
static qboolean fullsbardraw = false;
|
||||||
|
|
||||||
|
@ -267,8 +266,6 @@ static int VID_SetMode (int modenum)
|
||||||
BGM_Resume ();
|
BGM_Resume ();
|
||||||
scr_disabled_for_loading = temp;
|
scr_disabled_for_loading = temp;
|
||||||
|
|
||||||
vid_modenum = modenum;
|
|
||||||
|
|
||||||
// fix the leftover Alt from any Alt-Tab or the like that switched us away
|
// fix the leftover Alt from any Alt-Tab or the like that switched us away
|
||||||
ClearAllStates ();
|
ClearAllStates ();
|
||||||
|
|
||||||
|
@ -795,14 +792,12 @@ VID_DescribeCurrentMode_f
|
||||||
*/
|
*/
|
||||||
static void VID_DescribeCurrentMode_f (void)
|
static void VID_DescribeCurrentMode_f (void)
|
||||||
{
|
{
|
||||||
if (vid_modenum >= 0 && vid_modenum < nummodes)
|
if (draw_context)
|
||||||
{
|
|
||||||
Con_Printf("%dx%dx%d %s\n",
|
Con_Printf("%dx%dx%d %s\n",
|
||||||
modelist[vid_modenum].width,
|
draw_context->w,
|
||||||
modelist[vid_modenum].height,
|
draw_context->h,
|
||||||
modelist[vid_modenum].bpp,
|
draw_context->format->BitsPerPixel,
|
||||||
(modelist[vid_modenum].type == MS_FULLSCREEN) ? "fullscreen" : "windowed");
|
draw_context->flags & SDL_FULLSCREEN ? "fullscreen" : "windowed");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue