Fixed calling SkIntToScalar on a float error
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Jul 2012 15:17:53 +0000 (15:17 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 13 Jul 2012 15:17:53 +0000 (15:17 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4597 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/complexclip.cpp

index 6054612..7f91b58 100644 (file)
@@ -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)));