Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: src/core/SkScan_Hairline.cpp

Issue 2060543002: fix non-square stroke rects (non-aa) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/strokerect.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScan_Hairline.cpp
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp
index fc9e82818d84bf9aa7135964de9fb4e21c498def..083dc0df5f8d93a21be95b5ec58c6cb52c63af9f 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;
}
« no previous file with comments | « gm/strokerect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698