From 2377b171063198e227f794a8eb50d86aa15da30e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Jan 2022 00:19:39 +0100 Subject: [PATCH] - fixed bad aspect ratio calculation in DStatusBarCore::SetScale --- source/common/statusbar/base_sbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/statusbar/base_sbar.cpp b/source/common/statusbar/base_sbar.cpp index 53d4c03b4..9d4d3214c 100644 --- a/source/common/statusbar/base_sbar.cpp +++ b/source/common/statusbar/base_sbar.cpp @@ -352,7 +352,7 @@ void DStatusBarCore::SetScale() int horz = HorizontalResolution; int vert = VerticalResolution; double refaspect = horz / double(vert); - double screenaspect = w / double(h); + double screenaspect = ActiveRatio(w, h); if ((horz == 320 && vert == 200) || (horz == 640 && vert == 400)) {