From b641c9f20beb36dbf4e8df53a199c84cef3be9b2 Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Thu, 25 Mar 2010 14:31:46 +0000 Subject: if we're strokeandfill+hairline, just draw fill (they way paths do) instead of just hairline stroking (bad) git-svn-id: http://skia.googlecode.com/svn/trunk@533 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkDraw.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3