From aceabe92e617bab8ebe24981fabe6a5f48285527 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 26 Jan 2021 18:19:25 +0100 Subject: fix recent regression in screen layout calculation --- src/frontend/Util_Video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/frontend/Util_Video.cpp b/src/frontend/Util_Video.cpp index 271d40b..b59764b 100644 --- a/src/frontend/Util_Video.cpp +++ b/src/frontend/Util_Video.cpp @@ -222,7 +222,7 @@ void SetupScreenLayout(int screenWidth, int screenHeight, bool moveV = rotation % 2 == layout; float offsetBot = (moveV ? 192.0 : 256.0 * botAspect) / 2.0 + screenGap / 2.0; - float offsetTop = -offsetBot; + float offsetTop = -((moveV ? 192.0 : 256.0 * topAspect) / 2.0 + screenGap / 2.0); if ((rotation == 1 || rotation == 2) ^ swapScreens) { -- cgit v1.2.3