aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkScan_Antihair.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-15 14:34:40 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-15 14:34:40 +0000
commit0724f4320d4f8c67d26c77594cca7fd030f4be1d (patch)
tree78a1ab8eb81e0feb57af9834081887cb91489b03 /src/core/SkScan_Antihair.cpp
parent61f2f2c1c99379b714b0e2a0d6bb142bc3d66bb4 (diff)
don't clamp the stopScale to 0 unless it originally exceeded the clip. This is
a tweak on the fix in 3366, but in that earlier change, I mistakenly changed > to >=. This CL just restores the compare to > git-svn-id: http://skia.googlecode.com/svn/trunk@3400 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkScan_Antihair.cpp')
-rw-r--r--src/core/SkScan_Antihair.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkScan_Antihair.cpp b/src/core/SkScan_Antihair.cpp
index a6f592ad82..9256597bbd 100644
--- a/src/core/SkScan_Antihair.cpp
+++ b/src/core/SkScan_Antihair.cpp
@@ -281,7 +281,7 @@ static void do_anti_hairline(SkFDot6 x0, SkFDot6 y0, SkFDot6 x1, SkFDot6 y1,
scaleStop = 64;
}
#else
- if (istop >= clip->fRight) {
+ if (istop > clip->fRight) {
istop = clip->fRight;
scaleStop = 0; // so we don't draw this last column
}
@@ -357,7 +357,7 @@ static void do_anti_hairline(SkFDot6 x0, SkFDot6 y0, SkFDot6 x1, SkFDot6 y1,
scaleStop = 64; // so we don't draw this last row
}
#else
- if (istop >= clip->fBottom) {
+ if (istop > clip->fBottom) {
istop = clip->fBottom;
scaleStop = 0; // so we don't draw this last row
}