diff options
Diffstat (limited to 'src/core/SkAnalyticEdge.cpp')
-rw-r--r-- | src/core/SkAnalyticEdge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkAnalyticEdge.cpp b/src/core/SkAnalyticEdge.cpp index a9cbc50204..862f88d043 100644 --- a/src/core/SkAnalyticEdge.cpp +++ b/src/core/SkAnalyticEdge.cpp @@ -106,7 +106,7 @@ bool SkAnalyticQuadraticEdge::updateQuadratic() { newx = oldx + (dx >> shift); newy = oldy + (dy >> shift); slope = dy >> 10 > 0 ? QuickSkFDot6Div(dx >> 10, dy >> 10) : SK_MaxS32; - if (SkAbs32(dy) >= SK_Fixed1 * 2) { // only snap when dy is large enough + if (SkAbs32(dy >> shift) >= SK_Fixed1 * 2) { // only snap when dy is large enough newSnappedY = SkTMin<SkFixed>(fQEdge.fQLastY, SkFixedRoundToFixed(newy)); newSnappedX = newx + SkFixedMul(slope, newSnappedY - newy); } else { |