aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/CopyTilesRenderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/CopyTilesRenderer.cpp')
-rw-r--r--tools/CopyTilesRenderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/CopyTilesRenderer.cpp b/tools/CopyTilesRenderer.cpp
index 553209ca3b..0df43bbefc 100644
--- a/tools/CopyTilesRenderer.cpp
+++ b/tools/CopyTilesRenderer.cpp
@@ -38,8 +38,8 @@ namespace sk_tools {
int i = 0;
bool success = true;
SkBitmap dst;
- for (int x = 0; x < fPicture->width(); x += fLargeTileWidth) {
- for (int y = 0; y < fPicture->height(); y += fLargeTileHeight) {
+ for (int x = 0; x < this->getViewWidth(); x += fLargeTileWidth) {
+ for (int y = 0; y < this->getViewHeight(); y += fLargeTileHeight) {
SkAutoCanvasRestore autoRestore(fCanvas, true);
fCanvas->translate(SkIntToScalar(-x), SkIntToScalar(-y));
// Draw the picture