diff options
author | reed <reed@google.com> | 2016-06-10 13:21:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-10 13:21:07 -0700 |
commit | 8151103535bab8639dab2cb308b1b9c04651b632 (patch) | |
tree | 715fe0f5b7f1e9289adc213801a3ec584bc142ee /src/core/SkScan_Hairline.cpp | |
parent | 7df9e4a87d84415391c167ea54cd389d4b423c2d (diff) |
fix non-square stroke rects (non-aa)
fiddle showing bug: https://fiddle.skia.org/c/a21ecf5e33da84f52eba26e8c2f3d280
BUG=skia:5408
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2060543002
Review-Url: https://codereview.chromium.org/2060543002
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index fc9e82818d..083dc0df5f 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -641,7 +641,7 @@ void SkScan::FrameRect(const SkRect& r, const SkPoint& strokeSize, outer.set(r.fLeft - rx, r.fTop - ry, r.fRight + rx, r.fBottom + ry); - if (r.width() <= dx || r.height() <= dx) { + if (r.width() <= dx || r.height() <= dy) { SkScan::FillRect(outer, clip, blitter); return; } |