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

Unified Diff: include/core/SkRect.h

Issue 1548643002: revised strokerect gm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: handle halfway case in scan converter Created 5 years 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') | include/core/SkScalar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRect.h
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index fe276e6710b0d242a0b96de66eb22d87f7e7c015..bfc9981da94c054acae7f64e3635d3b4176fa82d 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -838,7 +838,7 @@ public:
*/
void dround(SkIRect* dst) const {
SkASSERT(dst);
- dst->set(SkDScalarRoundToInt(fLeft), SkDScalarRoundToInt(fTop),
+ dst->set(SkDScalarRoundDownToInt(fLeft), SkDScalarRoundDownToInt(fTop),
SkDScalarRoundToInt(fRight), SkDScalarRoundToInt(fBottom));
}
« no previous file with comments | « gm/strokerect.cpp ('k') | include/core/SkScalar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698