Skip to content

Commit 2154af2

Browse files
committed
fix stroke sub-hairline threshold
bug:7339943 Change-Id: I4051a03f4cd5bd2c313840208540601fb7a056e2
1 parent c0c0c0e commit 2154af2

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)