- 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:
Christoph Oelckers 2010-09-16 12:48:58 +00:00
parent ee87fdc58e
commit a5be18c1c1

View file

@ -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;