aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleSubpixelTranslate.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-30 13:45:36 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-30 13:45:36 +0000
commit687a26defaa28ce1ede534bf199bbbfc92cee5a3 (patch)
treef305c93d716724836bebfd1212a0723c4b56fe55 /samplecode/SampleSubpixelTranslate.cpp
parenta3264e53ee3f3c5d6a2c813df7e44b5b96d207f2 (diff)
fix int->scalar warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@14990 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleSubpixelTranslate.cpp')
-rw-r--r--samplecode/SampleSubpixelTranslate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleSubpixelTranslate.cpp b/samplecode/SampleSubpixelTranslate.cpp
index dd1ba110a6..686a153df6 100644
--- a/samplecode/SampleSubpixelTranslate.cpp
+++ b/samplecode/SampleSubpixelTranslate.cpp
@@ -51,7 +51,7 @@ public:
protected:
SkBitmap fBM;
SkString fFilename;
- int fSize;
+ SkScalar fSize;
float fHorizontalVelocity, fVerticalVelocity;
SkPoint fCurPos;
@@ -122,5 +122,5 @@ private:
//////////////////////////////////////////////////////////////////////////////
-static SkView* MyFactory() { return new SubpixelTranslateView("mandrill_256.png", .05, .05); }
+static SkView* MyFactory() { return new SubpixelTranslateView("mandrill_256.png", .05f, .05f); }
static SkViewRegister reg(MyFactory);