From a5be18c1c1e26eaa312121e3113fac97e3ce7608 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 16 Sep 2010 12:48:58 +0000 Subject: [PATCH] - try not to scale the option menu to more than 3/4 of the screen's width if doable. SVN r2796 (trunk) --- src/v_video.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/v_video.cpp b/src/v_video.cpp index c51f13cfc..6beb89292 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -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;