diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-02-06 03:15:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-06 03:15:22 +0000 |
commit | 1c06469101464c147058c01bc25c9e4b3c1aa16b (patch) | |
tree | e2e69602a14e9a227d65f42d0f4d2dd2f1fd2a1f /tools | |
parent | af04b113dcd28ae788a3ffb4a5420817cb7ed95f (diff) | |
parent | 1bceb9823f7af258489c91fa201214805744fa4a (diff) | |
download | frameworks_base-1c06469101464c147058c01bc25c9e4b3c1aa16b.zip frameworks_base-1c06469101464c147058c01bc25c9e4b3c1aa16b.tar.gz frameworks_base-1c06469101464c147058c01bc25c9e4b3c1aa16b.tar.bz2 |
am 1bceb982: am 650d30c5: am b156c019: am d5129e75: am 8a892279: Fix a bug in Nine Patch library.
* commit '1bceb9823f7af258489c91fa201214805744fa4a':
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); } |