mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 05:10:55 +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
|
// 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 height = windowxy2.y - windowxy1.y + 1, width = windowxy2.x - windowxy1.x + 1;
|
||||||
|
int bottomspace = screen->GetHeight() - windowxy2.y;
|
||||||
|
|
||||||
IntRect mSceneViewport;
|
IntRect mSceneViewport;
|
||||||
mSceneViewport.left = windowxy1.x;
|
mSceneViewport.left = windowxy1.x;
|
||||||
mSceneViewport.top = windowxy1.y;
|
mSceneViewport.top = (bottomspace - windowxy1.y/2);
|
||||||
mSceneViewport.width = width;
|
mSceneViewport.width = width;
|
||||||
mSceneViewport.height = height;
|
mSceneViewport.height = height;
|
||||||
return mSceneViewport;
|
return mSceneViewport;
|
||||||
|
|
Loading…
Reference in a new issue