From 7af78e0d6ae874877a729a27e3f8008719b4d1c2 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 18 Dec 2013 19:47:57 +0000 Subject: 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 --- src/core/SkBitmapFilter.cpp | 4 ++-- 1 file 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 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; -- cgit v1.2.3