diff options
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r-- | samplecode/SampleAll.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp index a8d24589ce..ecd6715a11 100644 --- a/samplecode/SampleAll.cpp +++ b/samplecode/SampleAll.cpp @@ -402,7 +402,7 @@ protected: paint.setStyle(SkPaint::kStroke_Style); paint.setBlendMode(SkBlendMode::kXor); paint.setColorFilter(lightingFilter); - canvas->drawLine(start.fX, start.fY, stop.fX, stop.fY, paint); // should not be green + canvas->drawLine(start, stop, paint); // should not be green paint.setBlendMode(SkBlendMode::kSrcOver); paint.setColorFilter(nullptr); |