aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/Viewer.cpp
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-06-13 14:38:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-13 14:38:35 -0700
commit401cf48631acd9a24a542f9bd6b6bb1c16168070 (patch)
treeadd2d4194feaa92eced55610b5fbf3742a0c5351 /tools/viewer/Viewer.cpp
parent6b6ffc4ab6ecee9f46425a5467ef0fbebbb8c9cd (diff)
Quickly fix 0f to 0.0f
TBR=egdaniel@google.com So Visual Studio won't complain. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2064863002 Review-Url: https://codereview.chromium.org/2064863002
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);
}