diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-02-06 02:59:38 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-06 02:59:38 +0000 |
commit | b156c0197d052dd4be71ad2b858acc01f50ad49f (patch) | |
tree | 40b76afb8c1b9db38409324e6a7fc7e9fa187755 /tools | |
parent | 3e80914d1683d1641fd6a01f14f126452e17f5c7 (diff) | |
parent | d5129e75968030620a1372e39fcfbc17fe584e17 (diff) | |
download | frameworks_base-b156c0197d052dd4be71ad2b858acc01f50ad49f.zip frameworks_base-b156c0197d052dd4be71ad2b858acc01f50ad49f.tar.gz frameworks_base-b156c0197d052dd4be71ad2b858acc01f50ad49f.tar.bz2 |
am d5129e75: am 8a892279: Fix a bug in Nine Patch library.
* commit 'd5129e75968030620a1372e39fcfbc17fe584e17':
Fix a bug in Nine Patch library.
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 38745ce..74b2893 100644 --- a/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/NinePatch_Delegate.java @@ -176,7 +176,7 @@ public final class NinePatch_Delegate { /*package*/ static void nativeDraw(long canvas_instance, RectF loc, long bitmap_instance, long chunk, long 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, chunk, paint_instance_or_null, destDensity, srcDensity); } @@ -185,7 +185,7 @@ public final class NinePatch_Delegate { /*package*/ static void nativeDraw(long canvas_instance, Rect loc, long bitmap_instance, long chunk, long 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, chunk, paint_instance_or_null, destDensity, srcDensity); } |