commit | 5f0d44f69768a39b0bcd9d1d072ce3606a1ca1ed | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Tue Mar 25 13:56:51 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Mar 25 13:56:51 2014 +0000 |
tree | c692b4653cc8540bb2811d643f0d46948c9ed026 | |
parent | 557a93e104f1fec69ed05b2d0ff26c78bca4c5d6 [diff] | |
parent | 02eb6bfd66d0afc4b1d81824558e136649a5a4df [diff] |
Merge "Fix scaleNinePatch."
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]) {