diff options
| author | 2011-08-02 05:17:49 -0700 | |
|---|---|---|
| committer | 2011-08-02 05:17:49 -0700 | |
| commit | 09a22e33e7a912ef14982b91f9387f907cc015f5 (patch) | |
| tree | 8b8660a6dd748c3cd03462e812e70afa54a23d75 | |
| parent | c4c458c678567b899aae04631570460c5e729512 (diff) | |
Reverting until we can find a better way to address this issue without affecting nine-patches with large stretchable areas.
Revert "Fix NinePatch decoder when the target is smaller than the source."
This reverts commit c4c458c678567b899aae04631570460c5e729512
| -rw-r--r-- | core/jni/android/graphics/NinePatchImpl.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/jni/android/graphics/NinePatchImpl.cpp b/core/jni/android/graphics/NinePatchImpl.cpp index 579749a613a3..a3e36ee9d8a1 100644 --- a/core/jni/android/graphics/NinePatchImpl.cpp +++ b/core/jni/android/graphics/NinePatchImpl.cpp @@ -160,14 +160,6 @@ void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, return; } - // if the nine patch is bigger than the dst on a given axis we cannot - // stretch properly so just draw the bitmap as best as possible and return - if (bitmap.width() >= bounds.width() || bitmap.height() >= bounds.height()) - { - canvas->drawBitmapRect(bitmap, NULL, bounds, paint); - return; - } - // should try a quick-reject test before calling lockPixels SkAutoLockPixels alp(bitmap); |