Skip to content

Commit

Permalink
- changed menu scaling so that on 1366x768 a factor of 2 gets used.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
coelckers committed May 19, 2019
1 parent 35e25a8 commit 6b51c05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/v_video.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 6b51c05

Please sign in to comment.