mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- try not to scale the option menu to more than 3/4 of the screen's width if doable.
SVN r2796 (trunk)
This commit is contained in:
parent
ee87fdc58e
commit
a5be18c1c1
1 changed files with 6 additions and 0 deletions
|
@ -1485,6 +1485,12 @@ bool V_DoModeSetup (int width, int height, int bits)
|
|||
{
|
||||
CleanXfac_1 = MAX(CleanXfac - 1, 1);
|
||||
CleanYfac_1 = MAX(CleanYfac - 1, 1);
|
||||
// On larger screens this is not enough so make sure it's at most 3/4 of the screen's width
|
||||
while (CleanXfac_1 * 320 > screen->GetWidth()*3/4 && CleanXfac_1 > 2)
|
||||
{
|
||||
CleanXfac_1--;
|
||||
CleanYfac_1--;
|
||||
}
|
||||
}
|
||||
CleanWidth_1 = width / CleanXfac_1;
|
||||
CleanHeight_1 = height / CleanYfac_1;
|
||||
|
|
Loading…
Reference in a new issue