diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-11 20:32:05 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-11 20:32:05 +0000 |
commit | adef4fefd3d445e72ff915602293f8260e15f84a (patch) | |
tree | 17ba636e3222997f338042848021bad09ace43ab | |
parent | 7fa1bb41333a0873d636eea8ec14e5aed0e256a7 (diff) |
fix build warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@8078 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/effects/SkBlurMask.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |