From f4db3a0db827e68eead577041ba74c4bd0414e72 Mon Sep 17 00:00:00 2001 From: "humper@google.com" Date: Fri, 12 Jul 2013 22:15:12 +0000 Subject: [PATCH] fix windows warning git-svn-id: http://skia.googlecode.com/svn/trunk@10058 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/downsamplebitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm/downsamplebitmap.cpp b/gm/downsamplebitmap.cpp index 93d080f..ad77dd6 100644 --- a/gm/downsamplebitmap.cpp +++ b/gm/downsamplebitmap.cpp @@ -68,7 +68,7 @@ protected: paint.setFlags( paint.getFlags() | SkPaint::kHighQualityFilterBitmap_Flag ); canvas->save(); - canvas->translate( curX, 0 ); + canvas->translate( (SkScalar) curX, 0.f ); canvas->drawBitmapMatrix( fBM, matrix, &paint ); canvas->restore(); -- 2.7.4