aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleQuadStroker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleQuadStroker.cpp')
-rw-r--r--samplecode/SampleQuadStroker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleQuadStroker.cpp b/samplecode/SampleQuadStroker.cpp
index 40f01fd105..ab65ff6d87 100644
--- a/samplecode/SampleQuadStroker.cpp
+++ b/samplecode/SampleQuadStroker.cpp
@@ -393,7 +393,7 @@ protected:
return;
}
SkRect bounds = path.getBounds();
- this->setWHZ(SkScalarCeilToInt(bounds.right()), drawText
+ this->setWHZ(SkScalarCeilToInt(bounds.right()), drawText
? SkScalarRoundToInt(scale * 3 / 2) : SkScalarRoundToInt(scale),
SkScalarRoundToInt(950.0f / scale));
erase(fMinSurface);
@@ -474,7 +474,7 @@ protected:
path.reset();
path.setFillType(SkPath::kEvenOdd_FillType);
path.addCircle(center.fX, center.fY, maxSide + width / 2);
- SkRect outside = SkRect::MakeXYWH(center.fX - maxSide - width, center.fY - maxSide - width,
+ SkRect outside = SkRect::MakeXYWH(center.fX - maxSide - width, center.fY - maxSide - width,
(maxSide + width) * 2, (maxSide + width) * 2);
path.addRect(outside);
canvas->drawPath(path, paint);
@@ -648,7 +648,7 @@ protected:
if (fArcButton.fEnabled) {
SkPoint center;
if (arcCenter(&center)) {
- r.set(center.fX - fRadius, center.fY - fRadius, center.fX + fRadius,
+ r.set(center.fX - fRadius, center.fY - fRadius, center.fX + fRadius,
center.fY + fRadius);
}
}