diff options
Diffstat (limited to 'src/core/SkPicture.cpp')
-rw-r--r-- | src/core/SkPicture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp index af1cd60cbf..4405094314 100644 --- a/src/core/SkPicture.cpp +++ b/src/core/SkPicture.cpp @@ -186,7 +186,7 @@ SkCanvas* SkPicture::beginRecording(int width, int height, } if (recordingFlags & kOptimizeForClippedPlayback_RecordingFlag) { - SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(width), + SkScalar aspectRatio = SkScalarDiv(SkIntToScalar(width), SkIntToScalar(height)); SkRTree* tree = SkRTree::Create(6, 11, aspectRatio); SkASSERT(NULL != tree); |