SDL: option to draw in the display cutout area that actually works
This commit is contained in:
@@ -1219,13 +1219,6 @@ public class GLSurfaceView_SDL extends SurfaceView implements SurfaceHolder.Call
|
||||
synchronized (this) {
|
||||
mWidth = w;
|
||||
mHeight = h;
|
||||
if (Globals.DrawInDisplayCutout) {
|
||||
final Rect r = new Rect();
|
||||
MainActivity.instance._videoLayout.getWindowVisibleDisplayFrame(r);
|
||||
//mWidth = r.width();
|
||||
//mHeight = r.height();
|
||||
//Log.v("SDL", "GLSurfaceView_SDL::onWindowResize(): adjusted to display cutout: " + mWidth + "x" + mHeight);
|
||||
}
|
||||
mSizeChanged = true;
|
||||
mRenderer.onWindowResize(w, h);
|
||||
notify();
|
||||
|
||||
Reference in New Issue
Block a user