Fixed screen top cropped in non-immersive mode

This commit is contained in:
Sergii Pylypenko
2015-05-14 21:04:07 +03:00
parent 3f17ffcf38
commit f527b89955
3 changed files with 3 additions and 3 deletions

View File

@@ -625,7 +625,7 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
int ww = w - w % 2;
int hh = h - h % 2;
View topView = context.getWindow().peekDecorView();
if (topView != null)
if (topView != null && Globals.ImmersiveMode)
{
ww = topView.getWidth() - topView.getWidth() % 2;
hh = topView.getHeight() - topView.getHeight() % 2;