Properly set the center of the circular mask. am: 63d2e41d1b

am: 285cf2d765

Change-Id: I7ebd39225bff8740d486d38f4668eeb8fd83da56
This commit is contained in:
Alain Vongsouvanh
2016-10-26 21:33:44 +00:00
committed by android-build-merger

View File

@@ -242,7 +242,7 @@ class CircularDisplayMask {
}
double cx = (maskWidth - 1.0) / 2.0;
double cy = (maskHeight - 1.0) / 2.0;
double cy = (maskHeight - 1.0 + mScreenOffset) / 2.0;
double radius = maskWidth / 2.0;
int[] pixels = new int[maskWidth * maskHeight];