diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 19:47:57 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-18 19:47:57 +0000 |
commit | 7af78e0d6ae874877a729a27e3f8008719b4d1c2 (patch) | |
tree | ea6c0e5750d0c8f9ffa932d0b89153087e8656b0 | |
parent | 087b313939fcbe07fc42e8c5281c153d96b0a0c1 (diff) |
fix off-by-one error with rotated HQ scaling
BUG=
R=reed@google.com
Author: humper@google.com
Review URL: https://codereview.chromium.org/118193005
git-svn-id: http://skia.googlecode.com/svn/trunk@12755 2bbb7eff-a529-9590-31e7-b0007b416f81
-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; |