commit | 02eb6bfd66d0afc4b1d81824558e136649a5a4df | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Mar 11 16:50:30 2014 +0000 |
committer | Narayan Kamath <narayan@google.com> | Mon Mar 24 12:35:01 2014 +0000 |
tree | dbb964fca94d0096804dec9816c362ba7c640d51 | |
parent | 88517170cbb09b45324d5b457a0e5e840cc7d09b [diff] |
Fix scaleNinePatch. Use yDivs for yDivs, and not xDivs. bug: 13394494 (cherry picked from commit 42a51ae8812bccde7ff370cc2688f7955e489ad4) Change-Id: Ia0a7d701a170945216ab247a483e7f972b6fe17e
diff --git a/core/jni/android/graphics/BitmapFactory.cpp b/core/jni/android/graphics/BitmapFactory.cpp index 13c1fc8..44bf7f8 100644 --- a/core/jni/android/graphics/BitmapFactory.cpp +++ b/core/jni/android/graphics/BitmapFactory.cpp
@@ -114,7 +114,7 @@ } } - 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]) {