Index: tools/viewer/Viewer.cpp |
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp |
index 9f3b8f2e27df62d505737ac37a8d0503c7d63d98..5228a0fd125a5eb78dcf21bfa00a9b3293d55708 100644 |
--- a/tools/viewer/Viewer.cpp |
+++ b/tools/viewer/Viewer.cpp |
@@ -255,7 +255,9 @@ void Viewer::setupCurrentSlide(int previousSlide) { |
const SkISize slideSize = fSlides[fCurrentSlide]->getDimensions(); |
SkRect windowRect = fWindow->getContentRect(); |
fDefaultMatrixInv.mapRect(&windowRect); |
- fGesture.setTransLimit(SkRect::MakeWH(slideSize.width(), slideSize.height()), windowRect); |
+ fGesture.setTransLimit(SkRect::MakeWH(SkIntToScalar(slideSize.width()), |
+ SkIntToScalar(slideSize.height())), |
+ windowRect); |
} |
this->updateTitle(); |