summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2014-04-11 15:59:15 -0700
committerztenghui <ztenghui@google.com>2014-04-11 15:59:15 -0700
commit175f3c892c2c0bd64e32484a2b430e7c59907243 (patch)
treeaacf02b7369ba3a1ea4c5215d40033a97c745a85 /graphics
parentf873e7858cca1181a63bf92c4e9bb92824451cc8 (diff)
downloadframeworks_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.java4
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;