- disable size checking in windowed mode for vid_setmode, allowing it to set arbitrary sizes.

This commit is contained in:
Rachael Alexanderson 2017-03-03 12:48:56 -05:00 committed by Christoph Oelckers
parent fd20e1d78f
commit 4b63092c7a

View file

@ -72,6 +72,7 @@ FRenderer *Renderer;
IMPLEMENT_CLASS(DCanvas, true, false)
IMPLEMENT_CLASS(DFrameBuffer, true, false)
EXTERN_CVAR (Bool, fullscreen)
#if defined(_DEBUG) && defined(_M_IX86) && !defined(__MINGW32__)
#define DBGBREAK { __asm int 3 }
@ -1489,6 +1490,9 @@ CCMD (vid_setmode)
goodmode = true;
}
if (!fullscreen)
goodmode = true;
if (goodmode)
{
// The actual change of resolution will take place