- changed menu scaling so that on 1366x768 a factor of 2 gets used.

This turned out the smallest one on which a factor of 2 still works without cutting off texts but at least allows to use a larger menu display on this important laptop size.
This commit is contained in:
Christoph Oelckers 2019-05-19 08:53:10 +02:00
parent 35e25a8aea
commit 6b51c05870

View file

@ -563,7 +563,11 @@ void V_UpdateModeSize (int width, int height)
else if (w >= 1600 && w < 1920) factor = 3;
else factor = w / 640;
CleanYfac_1 = CleanXfac_1 = MAX(1, int (factor * 0.7));
if (w < 1360) factor = 1;
else if (w < 1920) factor = 2;
else factor = int(factor * 0.7);
CleanYfac_1 = CleanXfac_1 = factor;// MAX(1, int(factor * 0.7));
CleanWidth_1 = width / CleanXfac_1;
CleanHeight_1 = height / CleanYfac_1;