From e30661294bc590a11eef678bdf92c1dff75c36f9 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet <> Date: Thu, 16 Apr 2009 12:44:37 -0700 Subject: AI 146485: am: CL 146411 Fix BridgeCanvas#drawRoundRect Original author: xav Merged from: //branches/cupcake/... Automated import of CL 146485 --- .../bridge/src/com/android/layoutlib/bridge/BridgeCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeCanvas.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeCanvas.java index 70c26a7..4710691 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeCanvas.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/BridgeCanvas.java @@ -650,12 +650,12 @@ public class BridgeCanvas extends Canvas { int arcHeight = (int)(ry * 2); if (style == Style.FILL || style == Style.FILL_AND_STROKE) { - g.fillRoundRect((int)rect.left, (int)rect.right, (int)rect.width(), (int)rect.height(), + g.fillRoundRect((int)rect.left, (int)rect.top, (int)rect.width(), (int)rect.height(), arcWidth, arcHeight); } if (style == Style.STROKE || style == Style.FILL_AND_STROKE) { - g.drawRoundRect((int)rect.left, (int)rect.right, (int)rect.width(), (int)rect.height(), + g.drawRoundRect((int)rect.left, (int)rect.top, (int)rect.width(), (int)rect.height(), arcWidth, arcHeight); } -- cgit v1.1