diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-05-13 16:31:44 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-13 16:31:44 +0000 |
commit | 9f9652587dd08e5a4f7c8195eb904cd0f0c3f6c4 (patch) | |
tree | 44970e2e19675892c63598268fc03e0773e04d05 /tools | |
parent | 8c5c2410ae9df60d9462784370965a0417e06fa4 (diff) | |
parent | d094742d2e19371291409886bb80f070df099533 (diff) | |
download | frameworks_base-9f9652587dd08e5a4f7c8195eb904cd0f0c3f6c4.zip frameworks_base-9f9652587dd08e5a4f7c8195eb904cd0f0c3f6c4.tar.gz frameworks_base-9f9652587dd08e5a4f7c8195eb904cd0f0c3f6c4.tar.bz2 |
am d094742d: am cda89ca0: Fix a bug in Nine Patch library. [DO NOT MERGE]
* commit 'd094742d2e19371291409886bb80f070df099533':
Fix a bug in Nine Patch library. [DO NOT MERGE]
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java index be27b54..390044a 100644 --- a/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java @@ -159,7 +159,7 @@ public final class NinePatch_Delegate { /*package*/ static void nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, byte[] c, int paint_instance_or_null, int destDensity, int srcDensity) { draw(canvas_instance, - (int) loc.left, (int) loc.top, (int) loc.width(), (int) loc.height(), + (int) loc.left, (int) loc.top, (int) loc.right, (int) loc.bottom, bitmap_instance, c, paint_instance_or_null, destDensity, srcDensity); } @@ -168,7 +168,7 @@ public final class NinePatch_Delegate { /*package*/ static void nativeDraw(int canvas_instance, Rect loc, int bitmap_instance, byte[] c, int paint_instance_or_null, int destDensity, int srcDensity) { draw(canvas_instance, - loc.left, loc.top, loc.width(), loc.height(), + loc.left, loc.top, loc.right, loc.bottom, bitmap_instance, c, paint_instance_or_null, destDensity, srcDensity); } |