commit | c39c8674c94dba8b1ffe938cd99c825320cc1475 | [log] [tgz] |
---|---|---|
author | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Apr 17 21:46:18 2012 +0000 |
committer | vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Tue Apr 17 21:46:18 2012 +0000 |
tree | 1d8d33c4c3f60a9c4c5cc84763dc15163871abf2 | |
parent | 99b300ed9dcd09db544dd985cdd95a2ea284cb7c [diff] |
Fix some fixed-point bugs. Review URL: https://codereview.appspot.com/6047046 git-svn-id: http://skia.googlecode.com/svn/trunk@3714 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp index 3a559ba..2c3bfd0 100644 --- a/src/pdf/SkPDFShader.cpp +++ b/src/pdf/SkPDFShader.cpp
@@ -452,7 +452,7 @@ } case SkShader::kSweep_GradientType: transformPoints[1] = transformPoints[0]; - transformPoints[1].fX += 1; + transformPoints[1].fX += SK_Scalar1; codeFunction = &sweepCode; break; case SkShader::kColor_GradientType: