Index: gm/shapes.cpp |
diff --git a/gm/shapes.cpp b/gm/shapes.cpp |
index c746a493df04cab1539e88dc1e428ffcdb9b6cf3..23cffe54526af133882aa90cdacb2cd9889c8488 100644 |
--- a/gm/shapes.cpp |
+++ b/gm/shapes.cpp |
@@ -66,7 +66,7 @@ protected: |
canvas->clear(SK_ColorWHITE); |
canvas->save(); |
- canvas->translate(canvas->imageInfo().width() / 2.f, canvas->imageInfo().height() / 2.f); |
+ canvas->translate(this->onISize().width() / 2.f, this->onISize().height() / 2.f); |
this->drawShapes(canvas); |
canvas->restore(); |
} |