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

Commit 892609ad authored by Griff Hazen's avatar Griff Hazen Committed by Android Git Automerger
Browse files

am aeffc9ce: Merge "Always draw the circular emulator overlay with square...

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

* commit 'aeffc9ce':
  Always draw the circular emulator overlay with square dimensions
parents f7b68049 aeffc9ce
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);
    }