aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/SkDraw.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkDraw.h b/src/core/SkDraw.h
index f2d5946c9e..f2941948b7 100644
--- a/src/core/SkDraw.h
+++ b/src/core/SkDraw.h
@@ -84,7 +84,9 @@ public:
*/
void drawPathCoverage(const SkPath& src, const SkPaint& paint,
SkBlitter* customBlitter = NULL) const {
- this->drawPath(src, paint, NULL, false, true, customBlitter);
+ bool isHairline = paint.getStyle() == SkPaint::kStroke_Style &&
+ paint.getStrokeWidth() > 0;
+ this->drawPath(src, paint, NULL, false, !isHairline, customBlitter);
}
/** Helper function that creates a mask from a path and an optional maskfilter.