summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-01-18 17:08:53 -0800
committerXavier Ducrohet <xav@android.com>2012-01-18 17:08:53 -0800
commit5bf2802ad9de237ccc014489dd36ff4baadadfaa (patch)
treeb1a7d91193d66de13924be8d0b58d9637ed2a76e /tools
parent170bfe32ab8971805d56f8870758cbc46060d1ef (diff)
downloadframeworks_base-5bf2802ad9de237ccc014489dd36ff4baadadfaa.zip
frameworks_base-5bf2802ad9de237ccc014489dd36ff4baadadfaa.tar.gz
frameworks_base-5bf2802ad9de237ccc014489dd36ff4baadadfaa.tar.bz2
Fix broken drawCircle LayoutLib.
Change-Id: I5e23bbe0119e385fa2f77854a8f88128351d3759
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
index 8e3ed93..f797836 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java
@@ -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, radius),
+ new RectF(cx - radius, cy - radius, cx + radius, cy + radius),
paint);
}