From 5bf2802ad9de237ccc014489dd36ff4baadadfaa Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Wed, 18 Jan 2012 17:08:53 -0800 Subject: Fix broken drawCircle LayoutLib. Change-Id: I5e23bbe0119e385fa2f77854a8f88128351d3759 --- tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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); } -- cgit v1.1