diff options
Diffstat (limited to 'tools/PictureRenderer.cpp')
-rw-r--r-- | tools/PictureRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index 15d0872d73..b277232708 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp @@ -139,7 +139,7 @@ void PictureRenderer::end() { int PictureRenderer::getViewWidth() { SkASSERT(fPicture != NULL); - int width = fPicture->width() * fScaleFactor; + int width = SkScalarCeilToInt(fPicture->width() * fScaleFactor); if (fViewport.width() > 0) { width = SkMin32(width, fViewport.width()); } @@ -148,7 +148,7 @@ int PictureRenderer::getViewWidth() { int PictureRenderer::getViewHeight() { SkASSERT(fPicture != NULL); - int height = fPicture->height() * fScaleFactor; + int height = SkScalarCeilToInt(fPicture->height() * fScaleFactor); if (fViewport.height() > 0) { height = SkMin32(height, fViewport.height()); } |