aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skhello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r--tools/skhello.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp
index 93dad56df5..55748d2e1b 100644
--- a/tools/skhello.cpp
+++ b/tools/skhello.cpp
@@ -81,8 +81,8 @@ int tool_main(int argc, char** argv) {
SkScalar width = paint.measureText(text.c_str(), text.size());
SkScalar spacing = paint.getFontSpacing();
- int w = SkScalarRound(width) + 30;
- int h = SkScalarRound(spacing) + 30;
+ int w = SkScalarRoundToInt(width) + 30;
+ int h = SkScalarRoundToInt(spacing) + 30;
static const struct {
bool (*fProc)(int w, int h, const char path[], const char text[],