diff options
Diffstat (limited to 'tools/skhello.cpp')
-rw-r--r-- | tools/skhello.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/skhello.cpp b/tools/skhello.cpp index d1f8cb8192..0411b398b8 100644 --- a/tools/skhello.cpp +++ b/tools/skhello.cpp @@ -19,8 +19,7 @@ DEFINE_string2(outFile, o, "skhello", "The filename to write the image."); DEFINE_string2(text, t, "Hello", "The string to write."); static void doDraw(SkCanvas* canvas, const SkPaint& paint, const char text[]) { - SkRect bounds; - canvas->getClipBounds(&bounds); + SkRect bounds = canvas->getLocalClipBounds(); canvas->drawColor(SK_ColorWHITE); canvas->drawText(text, strlen(text), |