aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleTextAlpha.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleTextAlpha.cpp')
-rw-r--r--samplecode/SampleTextAlpha.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleTextAlpha.cpp b/samplecode/SampleTextAlpha.cpp
index 8286177ae7..c357e6d8c2 100644
--- a/samplecode/SampleTextAlpha.cpp
+++ b/samplecode/SampleTextAlpha.cpp
@@ -59,7 +59,7 @@ protected:
paint.setColor(rand.nextU() | (0xFF << 24));
paint.setTextSize(SkIntToScalar(ps));
paint.setTextSize(SkIntToScalar(24));
- canvas->drawText(str, strlen(str), x, y, paint);
+ canvas->drawString(str, x, y, paint);
y += paint.getFontMetrics(nullptr);
}
}