diff options
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/gradients/SkLinearGradient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp index 0d3cc7e0be..03393f726a 100644 --- a/src/effects/gradients/SkLinearGradient.cpp +++ b/src/effects/gradients/SkLinearGradient.cpp @@ -133,7 +133,7 @@ void shadeSpan_linear_vertical_lerp(TileProc proc, SkFixed dx, SkFixed fx, unsigned fullIndex = proc(fx); unsigned fi = fullIndex >> SkGradientShaderBase::kCache32Shift; unsigned remainder = fullIndex & ((1 << SkGradientShaderBase::kCache32Shift) - 1); - + int index0 = fi + toggle; int index1 = index0; if (fi < SkGradientShaderBase::kCache32Count - 1) { |