From 6b51c058700494e9bf0f54768ebb920057ea9c15 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 19 May 2019 08:53:10 +0200 Subject: [PATCH] - 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. --- src/v_video.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/v_video.cpp b/src/v_video.cpp index ae9b1ae78d..9df3714779 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -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;