diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-13 15:17:53 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-13 15:17:53 +0000 |
commit | 7fb2601e7af7b572cb8028fd4ae639d088e61288 (patch) | |
tree | 94dce466b9eb6b9df0c71bcd98b736e66c26085a | |
parent | 54bb7abc09e06b41aaf3dca633d27ccc7b291bad (diff) |
Fixed calling SkIntToScalar on a float error
git-svn-id: http://skia.googlecode.com/svn/trunk@4597 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | gm/complexclip.cpp | 4 |
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))); |