mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 07:41:22 +00:00
- fixed: Prevent /0 errors when calculating console scale, which could happen in certain rare situations.
This commit is contained in:
parent
e290274fb7
commit
cc9fa8a6f5
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ int GetUIScale(int altval)
|
|||
int vmax = screen->GetHeight() / 200;
|
||||
int hmax = screen->GetWidth() / 320;
|
||||
int max = MAX(vmax, hmax);
|
||||
return MIN(scaleval, max);
|
||||
return MAX(1,MIN(scaleval, max));
|
||||
}
|
||||
|
||||
// [RH] Stretch values to make a 320x200 image best fit the screen
|
||||
|
|
Loading…
Reference in a new issue