summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-09-30 16:56:56 -0700
committerRomain Guy <romainguy@google.com>2010-09-30 16:57:13 -0700
commitd79991277043d6bdbd90bb63fd8aff73ef9e06a5 (patch)
treefc9133cf5164f2eba24998ce383ebea0fb685c68 /graphics
parent5972e52e15e075e40dfcdc3ffaed1b7c4e2afac1 (diff)
downloadframeworks_base-d79991277043d6bdbd90bb63fd8aff73ef9e06a5.zip
frameworks_base-d79991277043d6bdbd90bb63fd8aff73ef9e06a5.tar.gz
frameworks_base-d79991277043d6bdbd90bb63fd8aff73ef9e06a5.tar.bz2
Make simple paths made of lines work.
Bug #3041098 Change-Id: Ife9c3f01ded10e2bb35b1cdf1a54734d8347fee4
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Path.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Path.java b/graphics/java/android/graphics/Path.java
index c3416a0..1324431 100644
--- a/graphics/java/android/graphics/Path.java
+++ b/graphics/java/android/graphics/Path.java
@@ -236,6 +236,7 @@ public class Path {
* @param y The y-coordinate of the end of a line
*/
public void lineTo(float x, float y) {
+ isSimplePath = false;
native_lineTo(mNativePath, x, y);
}
@@ -250,6 +251,7 @@ public class Path {
* this contour, to specify a line
*/
public void rLineTo(float dx, float dy) {
+ isSimplePath = false;
native_rLineTo(mNativePath, dx, dy);
}