aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-09 02:03:40 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-09 02:03:40 +0000
commit23113dd4206abadd95d401821e90ceb66232e4ed (patch)
treef7e3294e9138a3a7752da7680091ada097034fa1 /src/effects
parent0efcc37952afb7629a5c905cc597f1cb837b987c (diff)
fix typo: fA is dx^2 + dx^2 - dr^2, not dx^2 - dy^2 - dr^2
git-svn-id: http://skia.googlecode.com/svn/trunk@4217 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkGradientShader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkGradientShader.cpp b/src/effects/SkGradientShader.cpp
index ac4a2d46aa..c9bbfcf61c 100644
--- a/src/effects/SkGradientShader.cpp
+++ b/src/effects/SkGradientShader.cpp
@@ -2115,7 +2115,7 @@ struct TwoPtRadial {
fRadius = SkScalarToFloat(rad0);
fDRadius = SkScalarToFloat(rad1) - fRadius;
- fA = sqr(fDCenterX) - sqr(fDCenterY) - sqr(fDRadius);
+ fA = sqr(fDCenterX) + sqr(fDCenterY) - sqr(fDRadius);
fRadius2 = sqr(fRadius);
fRDR = fRadius * fDRadius;
}