diff options
-rw-r--r-- | src/core/SkBitmapFilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBitmapFilter.cpp b/src/core/SkBitmapFilter.cpp index 8c11f7c4c5..7443cb61b7 100644 --- a/src/core/SkBitmapFilter.cpp +++ b/src/core/SkBitmapFilter.cpp @@ -26,8 +26,8 @@ namespace { template <typename Color, typename ColorPacker> void highQualityFilter(ColorPacker pack, const SkBitmapProcState& s, int x, int y, Color* SK_RESTRICT colors, int count) { - const int maxX = s.fBitmap->width() - 1; - const int maxY = s.fBitmap->height() - 1; + const int maxX = s.fBitmap->width(); + const int maxY = s.fBitmap->height(); while (count-- > 0) { SkPoint srcPt; |