aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleFatBits.cpp
diff options
context:
space:
mode:
authorHal Canary <halcanary@google.com>2017-05-15 13:35:35 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2017-05-16 12:59:11 +0000
commit23e474cb7331c5d2389d97dce2d9e5c93c58f39f (patch)
tree95314f82ba240a5e5f5891d78489b2f4c9364b76 /samplecode/SampleFatBits.cpp
parent03d1e59bdac65cc1dd606b60e6565eb6860419f9 (diff)
SkCanvas: Helpers for draw{Point,Line,Circle}
Change-Id: Ie9c7d3b8f01aee435563b23b7d27f098f07dd287 Reviewed-on: https://skia-review.googlesource.com/16909 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'samplecode/SampleFatBits.cpp')
-rw-r--r--samplecode/SampleFatBits.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleFatBits.cpp b/samplecode/SampleFatBits.cpp
index 1acc1afa31..4e44a7f417 100644
--- a/samplecode/SampleFatBits.cpp
+++ b/samplecode/SampleFatBits.cpp
@@ -261,7 +261,7 @@ void FatBits::drawLine(SkCanvas* canvas, SkPoint pts[]) {
r.inset(SK_Scalar1/3, SK_Scalar1/3);
fMinSurface->getCanvas()->clipRect(r, kIntersect_SkClipOp, true);
}
- fMinSurface->getCanvas()->drawLine(pts[0].fX, pts[0].fY, pts[1].fX, pts[1].fY, paint);
+ fMinSurface->getCanvas()->drawLine(pts[0], pts[1], paint);
if (fUseClip) {
fMinSurface->getCanvas()->restore();
}