Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aeffc9ce authored by Griff Hazen's avatar Griff Hazen Committed by Android (Google) Code Review
Browse files

Merge "Always draw the circular emulator overlay with square dimensions" into lmp-mr1-modular-dev

parents 01dd0e86 1ad0fe6c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -93,7 +93,9 @@ class EmulatorDisplayOverlay {
        }
        c.drawColor(Color.TRANSPARENT, PorterDuff.Mode.SRC);
        mSurfaceControl.setPosition(0, 0);
        mOverlay.setBounds(0, 0, mScreenSize.x, mScreenSize.y);
        // Always draw the overlay with square dimensions
        int size = Math.max(mScreenSize.x, mScreenSize.y);
        mOverlay.setBounds(0, 0, size, size);
        mOverlay.draw(c);
        mSurface.unlockCanvasAndPost(c);
    }