aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-01-26 18:19:25 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2021-01-26 18:19:25 +0100
commitaceabe92e617bab8ebe24981fabe6a5f48285527 (patch)
tree01891f9c6c8bdf636a1b40473d20b1745b7d7ac9 /src/frontend
parentb78bc4cb66d29019119349ef31cb4cbadf870cfe (diff)
fix recent regression in screen layout calculation
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/Util_Video.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{