mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- 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:
parent
6afe9d09f3
commit
e6dab46b90
2 changed files with 1 additions and 2 deletions
|
@ -550,7 +550,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;
|
||||
|
|
|
@ -2189,7 +2189,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"
|
||||
|
|
Loading…
Reference in a new issue