diff options
author | ztenghui <ztenghui@google.com> | 2014-04-11 15:59:15 -0700 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2014-04-11 15:59:15 -0700 |
commit | 175f3c892c2c0bd64e32484a2b430e7c59907243 (patch) | |
tree | aacf02b7369ba3a1ea4c5215d40033a97c745a85 /graphics | |
parent | f873e7858cca1181a63bf92c4e9bb92824451cc8 (diff) | |
download | frameworks_base-175f3c892c2c0bd64e32484a2b430e7c59907243.zip frameworks_base-175f3c892c2c0bd64e32484a2b430e7c59907243.tar.gz frameworks_base-175f3c892c2c0bd64e32484a2b430e7c59907243.tar.bz2 |
Make sure control points are in absolute coordinates
Change-Id: I1b90fe39f9dc77e1a1b7b4b512cd11f5734fbf8f
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/drawable/VectorDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/VectorDrawable.java b/graphics/java/android/graphics/drawable/VectorDrawable.java index 3e68574..493e276 100644 --- a/graphics/java/android/graphics/drawable/VectorDrawable.java +++ b/graphics/java/android/graphics/drawable/VectorDrawable.java @@ -1997,8 +1997,8 @@ public class VectorDrawable extends Drawable { } path.rQuadTo(reflectiveCtrlPointX, reflectiveCtrlPointY, val[k + 0], val[k + 1]); - ctrlPointX = reflectiveCtrlPointX; - ctrlPointY = reflectiveCtrlPointY; + ctrlPointX = currentX + reflectiveCtrlPointX; + ctrlPointY = currentY + reflectiveCtrlPointY; currentX += val[k + 0]; currentY += val[k + 1]; break; |