- remove 320x240 from the list of resolution presets

- enforce a minimum CleanXfac scaling in the menu to prevent accidental divide by 0's
This commit is contained in:
Rachael Alexanderson 2019-04-07 06:01:47 -04:00
parent 45c3558692
commit 1096c14a3a
2 changed files with 1 additions and 2 deletions

View file

@ -546,7 +546,7 @@ void V_UpdateModeSize (int width, int height)
// This reference size is being used so that on 800x450 (small 16:9) a scale of 2 gets used.
CleanXfac = std::min(screen->GetWidth() / 400, screen->GetHeight() / 240);
CleanXfac = std::max(std::min(screen->GetWidth() / 400, screen->GetHeight() / 240), 1);
if (CleanXfac >= 4) CleanXfac--; // Otherwise we do not have enough space for the episode/skill menus in some languages.
CleanYfac = CleanXfac;
CleanWidth = screen->GetWidth() / CleanXfac;

View file

@ -2188,7 +2188,6 @@ OptionMenu CustomResolutionMenu protected
StaticText "$VIDMNU_RESPRESETHEAD"
StaticText ""
StaticText "$VIDMNU_ASPECT43"
Command "320x240", "menu_resolution_set_custom 320 240"
Command "640x480", "menu_resolution_set_custom 640 480"
Command "1024x768", "menu_resolution_set_custom 1024 768"
Command "1280x960", "menu_resolution_set_custom 1280 960"