diff options
-rw-r--r-- | src/core/SkDraw.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index f112d4b088..45b4c356f4 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -706,7 +706,10 @@ void SkDraw::drawRect(const SkRect& rect, const SkPaint& paint) const { SkBlitter* blitter = blitterStorage.get(); const SkRegion* clip = fClip; - if (paint.getStyle() == SkPaint::kFill_Style) { + // we want to "fill" if we are kFill or kStrokeAndFill, since in the latter + // case we are also hairline (if we've gotten to here), which devolves to + // effectively just kFill + if (paint.getStyle() != SkPaint::kStroke_Style) { if (paint.isAntiAlias()) { SkScan::AntiFillRect(devRect, clip, blitter); } else { |