From adef4fefd3d445e72ff915602293f8260e15f84a Mon Sep 17 00:00:00 2001 From: "humper@google.com" Date: Mon, 11 Mar 2013 20:32:05 +0000 Subject: fix build warnings git-svn-id: http://skia.googlecode.com/svn/trunk@8078 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/effects/SkBlurMask.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/effects') diff --git a/src/effects/SkBlurMask.cpp b/src/effects/SkBlurMask.cpp index 19a538a91d..31bd711b4e 100644 --- a/src/effects/SkBlurMask.cpp +++ b/src/effects/SkBlurMask.cpp @@ -1260,10 +1260,10 @@ bool SkBlurMask::BlurRect(SkMask *dst, const SkRect &src, int shadow_right = (int)(src.width()) + pad; int shadow_bottom = (int)(src.height()) + pad; - dst->fBounds.set(shadow_left + src.fLeft, - shadow_top + src.fTop, - shadow_right + src.fRight, - shadow_bottom + src.fBottom); + dst->fBounds.set(SkScalarRoundToInt(shadow_left + src.fLeft), + SkScalarRoundToInt(shadow_top + src.fTop), + SkScalarRoundToInt(shadow_right + src.fRight), + SkScalarRoundToInt(shadow_bottom + src.fBottom)); dst->fRowBytes = dst->fBounds.width(); dst->fFormat = SkMask::kA8_Format; -- cgit v1.2.3