From 442bead31b04c7808d12512ea44d72ea0f3bd188 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 22 Mar 2020 07:23:13 -0400 Subject: [PATCH] - undo the change from last commit for 5:4 monitors - turns out the scale is calculated differently for 1280x1024 and needs the buggy version to work correctly. --- src/g_statusbar/shared_sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index 6bb606e484e..ce05184fd26 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -486,7 +486,7 @@ void DBaseStatusBar::SetScale () ST_X = 0; // this was far more obtuse before... - double height4_3 = h * aspect / (4 / 3); + double height4_3 = h * aspect / 1.333; SBarTop = int(h - height4_3 + sby * height4_3 / VerticalResolution); } Displacement = 0;