Properly set the center of the circular mask.
am: 63d2e41d1b
Change-Id: If638998c5012b5ebb68cca77b257a991b09827a9
This commit is contained in:
@@ -242,7 +242,7 @@ class CircularDisplayMask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
double cx = (maskWidth - 1.0) / 2.0;
|
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;
|
double radius = maskWidth / 2.0;
|
||||||
int[] pixels = new int[maskWidth * maskHeight];
|
int[] pixels = new int[maskWidth * maskHeight];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user