aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/Viewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer/Viewer.cpp')
-rw-r--r--tools/viewer/Viewer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
index 48d2c41112..7052a3ac79 100644
--- a/tools/viewer/Viewer.cpp
+++ b/tools/viewer/Viewer.cpp
@@ -350,7 +350,8 @@ void Viewer::drawSlide(SkCanvas* canvas, bool inSplitScreen) {
SkRect contentRect = fWindow->getContentRect();
// If inSplitScreen, translate the image half screen to the right.
// Thus we have two copies of the image on each half of the screen.
- contentRect.fLeft += inSplitScreen ? (contentRect.fRight - contentRect.fLeft) * 0.5f : 0f;
+ contentRect.fLeft +=
+ inSplitScreen ? (contentRect.fRight - contentRect.fLeft) * 0.5f : 0.0f;
canvas->clipRect(contentRect);
canvas->translate(contentRect.fLeft, contentRect.fTop);
}