diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-03-24 23:51:48 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-24 23:51:50 +0000 |
commit | 44fea60376e4e851b07eb365fd581c5b9404611f (patch) | |
tree | 946d6f1345f1a2fa2d55eb819571767b1ec46f44 /tools/layoutlib | |
parent | 3bd5cbb1f3d837d7799fb4b33b4dda99adbeeeb4 (diff) | |
parent | 7c834296ac2561d0d630b2ef6b2530344be7afbd (diff) | |
download | frameworks_base-44fea60376e4e851b07eb365fd581c5b9404611f.zip frameworks_base-44fea60376e4e851b07eb365fd581c5b9404611f.tar.gz frameworks_base-44fea60376e4e851b07eb365fd581c5b9404611f.tar.bz2 |
Merge "Fix RoundRect radius." into lmp-dev
Diffstat (limited to 'tools/layoutlib')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java | 4 |
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 be75dde..4d2d100 100644 --- a/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/Canvas_Delegate.java @@ -675,7 +675,7 @@ public final class Canvas_Delegate { graphics.fillRoundRect( (int)left, (int)top, (int)(right - left), (int)(bottom - top), - (int)rx, (int)ry); + 2 * (int)rx, 2 * (int)ry); } if (style == Paint.Style.STROKE.nativeInt || @@ -683,7 +683,7 @@ public final class Canvas_Delegate { graphics.drawRoundRect( (int)left, (int)top, (int)(right - left), (int)(bottom - top), - (int)rx, (int)ry); + 2 * (int)rx, 2 * (int)ry); } } }); |