diff options
| author | 2014-03-11 16:50:30 +0000 | |
|---|---|---|
| committer | 2014-03-11 16:50:30 +0000 | |
| commit | 42a51ae8812bccde7ff370cc2688f7955e489ad4 (patch) | |
| tree | c84f35532455b7fa3d166df19c5e737ad7d074f1 | |
| parent | 549046038e6daf3c8ae71b5f2ab9e297a97d5a1b (diff) | |
Fix scaleNinePatch.
Use yDivs for yDivs, and not xDivs.
bug: 13394494
Change-Id: I4ca5fe33cf61922a894f071927ef08b2d7db7dd0
| -rw-r--r-- | core/jni/android/graphics/BitmapFactory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/BitmapFactory.cpp b/core/jni/android/graphics/BitmapFactory.cpp index fc587c0843c4..2b9a5c4a049c 100644 --- a/core/jni/android/graphics/BitmapFactory.cpp +++ b/core/jni/android/graphics/BitmapFactory.cpp @@ -115,7 +115,7 @@ static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { } } - int32_t* yDivs = chunk->getXDivs(); + int32_t* yDivs = chunk->getYDivs(); for (int i = 0; i < chunk->numYDivs; i++) { yDivs[i] = int32_t(yDivs[i] * scale + 0.5f); if (i > 0 && yDivs[i] == yDivs[i - 1]) { |