mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 17:02:25 +00:00
- the error checking on the previous commit should've been done slightly differently
This commit is contained in:
parent
d7b7ae06e7
commit
e4fd6ee03f
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
#define NUMSCALEMODES 6
|
#define NUMSCALEMODES 6
|
||||||
|
|
||||||
EXTERN_CVAR(Int, vid_scalemode)
|
|
||||||
EXTERN_CVAR(Int, vid_aspect)
|
EXTERN_CVAR(Int, vid_aspect)
|
||||||
CVAR(Int, vid_scale_customwidth, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
CVAR(Int, vid_scale_customwidth, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||||
CVAR(Int, vid_scale_customheight, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
CVAR(Int, vid_scale_customheight, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||||
|
@ -58,7 +57,7 @@ namespace
|
||||||
};
|
};
|
||||||
bool isOutOfBounds(int x)
|
bool isOutOfBounds(int x)
|
||||||
{
|
{
|
||||||
if (vScaleTable[vid_scalemode].isCustom)
|
if (vScaleTable[x].isCustom)
|
||||||
return ((vid_scale_customwidth < 80) || (vid_scale_customheight < 50));
|
return ((vid_scale_customwidth < 80) || (vid_scale_customheight < 50));
|
||||||
return (x < 0 || x >= NUMSCALEMODES || vScaleTable[x].isValid == false);
|
return (x < 0 || x >= NUMSCALEMODES || vScaleTable[x].isValid == false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue