- 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.
This commit is contained in:
Christoph Oelckers 2021-03-26 01:55:24 +01:00
parent be7bca8e9e
commit 098db655ab

View file

@ -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;