From c1a8684a47400f1612b4d592fc1dd15ce8b14107 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 10 Jul 2013 21:51:47 +0000 Subject: use SkIntToScalar BUG= R=senorblanco@chromium.org Review URL: https://codereview.chromium.org/18622004 git-svn-id: http://skia.googlecode.com/svn/trunk@9981 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/effects/SkBlendImageFilter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/effects/SkBlendImageFilter.cpp b/src/effects/SkBlendImageFilter.cpp index 7b98644ec7..1c40ca8a39 100644 --- a/src/effects/SkBlendImageFilter.cpp +++ b/src/effects/SkBlendImageFilter.cpp @@ -86,9 +86,11 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy, SkCanvas canvas(*dst); SkPaint paint; paint.setXfermodeMode(SkXfermode::kSrc_Mode); - canvas.drawBitmap(background, backgroundOffset.fX, backgroundOffset.fY, &paint); + canvas.drawBitmap(background, SkIntToScalar(backgroundOffset.fX), + SkIntToScalar(backgroundOffset.fY), &paint); paint.setXfermodeMode(modeToXfermode(fMode)); - canvas.drawBitmap(foreground, foregroundOffset.fX, foregroundOffset.fY, &paint); + canvas.drawBitmap(foreground, SkIntToScalar(foregroundOffset.fX), + SkIntToScalar(foregroundOffset.fY), &paint); return true; } -- cgit v1.2.3