summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/src/android/graphics
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2011-06-03 19:38:03 -0700
committerXavier Ducrohet <xav@android.com>2011-06-03 19:38:14 -0700
commitfb93ce9684120a36862b5b5e67b1865a652907e9 (patch)
tree41238180f5a041996b7f7f8204c2b33f3d8ef20a /tools/layoutlib/bridge/src/android/graphics
parentbd754205d0b59315582855329649dad925a04b82 (diff)
downloadframeworks_base-fb93ce9684120a36862b5b5e67b1865a652907e9.zip
frameworks_base-fb93ce9684120a36862b5b5e67b1865a652907e9.tar.gz
frameworks_base-fb93ce9684120a36862b5b5e67b1865a652907e9.tar.bz2
Import the Layoutlib from hc-mr1.
This is squash commit of all the missing patches. Change-Id: Ie081c46a173290646deddbde503a720d50c4400f
Diffstat (limited to 'tools/layoutlib/bridge/src/android/graphics')
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
index 922cd4c..8e3ed93 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
@@ -425,7 +425,7 @@ public final class Canvas_Delegate {
AffineTransform matrixTx = matrixDelegate.getAffineTransform();
// combine them so that the given matrix is applied after.
- currentTx.preConcatenate(matrixTx);
+ currentTx.concatenate(matrixTx);
// give it to the graphics2D as a new matrix replacing all previous transform
snapshot.setTransform(currentTx);
@@ -717,7 +717,7 @@ public final class Canvas_Delegate {
/*package*/ static void native_drawCircle(int nativeCanvas,
float cx, float cy, float radius, int paint) {
native_drawOval(nativeCanvas,
- new RectF(cx - radius, cy - radius, radius*2, radius*2),
+ new RectF(cx - radius, cy - radius, radius, radius),
paint);
}