aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/emptypath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/emptypath.cpp')
-rw-r--r--gm/emptypath.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/gm/emptypath.cpp b/gm/emptypath.cpp
index 56377e7338..67da93f365 100644
--- a/gm/emptypath.cpp
+++ b/gm/emptypath.cpp
@@ -68,10 +68,10 @@ protected:
titlePaint.setTextSize(15 * SK_Scalar1);
const char title[] = "Empty Paths Drawn Into Rectangle Clips With "
"Indicated Style and Fill";
- canvas->drawText(title, strlen(title),
- 20 * SK_Scalar1,
- 20 * SK_Scalar1,
- titlePaint);
+ canvas->drawString(title,
+ 20 * SK_Scalar1,
+ 20 * SK_Scalar1,
+ titlePaint);
SkRandom rand;
SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1);
@@ -109,14 +109,12 @@ protected:
labelPaint.setAntiAlias(true);
sk_tool_utils::set_portable_typeface(&labelPaint);
labelPaint.setTextSize(12 * SK_Scalar1);
- canvas->drawText(gStyles[style].fName,
- strlen(gStyles[style].fName),
- 0, rect.height() + 15 * SK_Scalar1,
- labelPaint);
- canvas->drawText(gFills[fill].fName,
- strlen(gFills[fill].fName),
- 0, rect.height() + 28 * SK_Scalar1,
- labelPaint);
+ canvas->drawString(gStyles[style].fName,
+ 0, rect.height() + 15 * SK_Scalar1,
+ labelPaint);
+ canvas->drawString(gFills[fill].fName,
+ 0, rect.height() + 28 * SK_Scalar1,
+ labelPaint);
}
}
canvas->restore();