mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 01:10:51 +00:00
- 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:
parent
be7bca8e9e
commit
098db655ab
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue