aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-12 21:23:49 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-12 21:23:49 +0000
commit4bdfb8c9d6482a56c7212034a6f73046227ed023 (patch)
tree3647172cc2b13df5364997aaa609b2870709551e /gm
parent51c62a6cfadc302bb65bb5a98e358c93223dc73f (diff)
Compiler complaints + some minor cleanup
Diffstat (limited to 'gm')
-rw-r--r--gm/twopointradial.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gm/twopointradial.cpp b/gm/twopointradial.cpp
index 52e338d984..221c713b30 100644
--- a/gm/twopointradial.cpp
+++ b/gm/twopointradial.cpp
@@ -69,7 +69,10 @@ protected:
if (false) {
SkPaint paint;
paint.setColor(SK_ColorBLUE);
- canvas->drawRect(SkRect::MakeWH(this->getISize().fWidth, this->getISize().fHeight), paint);
+ canvas->drawRect(
+ SkRect::MakeWH(SkIntToScalar(this->getISize().fWidth),
+ SkIntToScalar(this->getISize().fHeight)),
+ paint);
}
SkPaint paint;
const int R0 = 20;