Skip to content

Commit 3add43a

Browse files
ChrisCraikAndroid (Google) Code Review
authored andcommitted
Merge "fix stroke sub-hairline threshold" into jb-mr1-dev
2 parents bfbd58d + 2154af2 commit 3add43a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwui/PathRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void getStrokeVerticesFromPerimeterAA(const Vector<Vertex>& perimeter, float hal
215215
// alpha value (TODO: support different X/Y scale)
216216
float maxAlpha = 1.0f;
217217
if (halfStrokeWidth != 0 && inverseScaleX == inverseScaleY &&
218-
halfStrokeWidth * inverseScaleX < 1.0f) {
218+
halfStrokeWidth * inverseScaleX < 0.5f) {
219219
maxAlpha *= (2 * halfStrokeWidth) / inverseScaleX;
220220
halfStrokeWidth = 0.0f;
221221
}

0 commit comments

Comments
 (0)