- don't let the video scale let the screen end up with a client size less than 320x200, which may cause undefined behavior and trigger asserts in debug builds.
This commit is contained in:
parent
6d0b172762
commit
d84497c85a
2 changed files with 3 additions and 2 deletions
|
|
@ -475,8 +475,7 @@ void V_UpdateModeSize (int width, int height)
|
|||
|
||||
CleanWidth = width / CleanXfac;
|
||||
CleanHeight = height / CleanYfac;
|
||||
assert(CleanWidth >= 320);
|
||||
assert(CleanHeight >= 200);
|
||||
assert(CleanWidth >= 320 && CleanHeight >= 200);
|
||||
|
||||
if (width < 800 || width >= 960)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue