aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-11 20:32:05 +0000
committerGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-11 20:32:05 +0000
commitadef4fefd3d445e72ff915602293f8260e15f84a (patch)
tree17ba636e3222997f338042848021bad09ace43ab /src/effects
parent7fa1bb41333a0873d636eea8ec14e5aed0e256a7 (diff)
fix build warnings
git-svn-id: http://skia.googlecode.com/svn/trunk@8078 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkBlurMask.cpp8
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;