don't clamp the stopScale to 0 unless it originally exceeded the clip. This is
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 15 Mar 2012 14:34:40 +0000 (14:34 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 15 Mar 2012 14:34:40 +0000 (14:34 +0000)
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

src/core/SkScan_Antihair.cpp

index a6f592a..9256597 100644 (file)
@@ -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
             }