aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gm/complexclip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/complexclip.cpp b/gm/complexclip.cpp
index 60546126b3..7f91b58c89 100644
--- a/gm/complexclip.cpp
+++ b/gm/complexclip.cpp
@@ -100,8 +100,8 @@ protected:
// device boundaries so we need to "undo" the effect of the
// scale and translate
SkRect bounds = SkRect::MakeLTRB(
- SkIntToScalar(4.0f/3.0f * -20),
- SkIntToScalar(4.0f/3.0f * -20),
+ SkFloatToScalar(4.0f/3.0f * -20),
+ SkFloatToScalar(4.0f/3.0f * -20),
SkFloatToScalar(4.0f/3.0f * (this->getISize().fWidth - 20)),
SkFloatToScalar(4.0f/3.0f * (this->getISize().fHeight - 20)));