From 687a26defaa28ce1ede534bf199bbbfc92cee5a3 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Fri, 30 May 2014 13:45:36 +0000 Subject: fix int->scalar warnings git-svn-id: http://skia.googlecode.com/svn/trunk@14990 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleSubpixelTranslate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samplecode/SampleSubpixelTranslate.cpp') 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); -- cgit v1.2.3