mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- add some /0 guards in the load/save menu to prevent VM aborts
This commit is contained in:
parent
2d5210ccf2
commit
fd4295b38c
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ class LoadSaveMenu : ListMenu
|
||||||
savepicWidth = 216*screen.GetWidth() / 640;
|
savepicWidth = 216*screen.GetWidth() / 640;
|
||||||
savepicHeight = 135*screen.GetHeight() / 400;
|
savepicHeight = 135*screen.GetHeight() / 400;
|
||||||
|
|
||||||
FontScale = screen.GetHeight() / 480;
|
FontScale = max(screen.GetHeight() / 480, 1);
|
||||||
rowHeight = (NewConsoleFont.GetHeight() + 1) * FontScale;
|
rowHeight = max((NewConsoleFont.GetHeight() + 1) * FontScale, 1);
|
||||||
|
|
||||||
listboxLeft = savepicLeft + savepicWidth + 14;
|
listboxLeft = savepicLeft + savepicWidth + 14;
|
||||||
listboxTop = savepicTop;
|
listboxTop = savepicTop;
|
||||||
|
|
Loading…
Reference in a new issue