aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleBitmapRect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleBitmapRect.cpp')
-rw-r--r--samplecode/SampleBitmapRect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleBitmapRect.cpp b/samplecode/SampleBitmapRect.cpp
index ebfe3bbc6d..ccf2d26fe9 100644
--- a/samplecode/SampleBitmapRect.cpp
+++ b/samplecode/SampleBitmapRect.cpp
@@ -171,7 +171,7 @@ static void make_big_bitmap(SkBitmap* bm) {
SkCanvas canvas(*bm);
- canvas.drawText(gText, strlen(gText), 0, paint.getTextSize()*4/5, paint);
+ canvas.drawString(gText, 0, paint.getTextSize()*4/5, paint);
}
class BitmapRectView2 : public SampleView {