Always draw the circular emulator overlay with square dimensions

Bug: 17440607

Change-Id: I37bb99a0185c6269a3a541f0d810c11ff0acfb36
This commit is contained in:
Griff Hazen
2015-02-10 16:01:19 -08:00
parent 0a786f5f22
commit 1ad0fe6c36

View File

@@ -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);
}