From 098db655ab0956a1635583ff03843329ecedb024 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 26 Mar 2021 01:55:24 +0100 Subject: [PATCH] - did some fudging on the scene viewport until thinks looked right again. I have no idea, though, why it has to be this particular formula, though. It doesn't seem to make any sense. --- source/core/gamecontrol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/core/gamecontrol.cpp b/source/core/gamecontrol.cpp index 57e284862..5adcd8da3 100644 --- a/source/core/gamecontrol.cpp +++ b/source/core/gamecontrol.cpp @@ -227,10 +227,11 @@ static IntRect System_GetSceneRect() { // Special handling so the view with a visible status bar displays properly int height = windowxy2.y - windowxy1.y + 1, width = windowxy2.x - windowxy1.x + 1; + int bottomspace = screen->GetHeight() - windowxy2.y; IntRect mSceneViewport; mSceneViewport.left = windowxy1.x; - mSceneViewport.top = windowxy1.y; + mSceneViewport.top = (bottomspace - windowxy1.y/2); mSceneViewport.width = width; mSceneViewport.height = height; return mSceneViewport;