diff options
author | Cheng-Ru Lin <owenlin@google.com> | 2009-10-29 00:22:33 -0700 |
---|---|---|
committer | Cheng-Ru Lin <owenlin@google.com> | 2009-10-29 09:05:00 -0700 |
commit | 9c0f684c416ff74b71c289a9c195e9a95b4f0563 (patch) | |
tree | a1460eb1352c3e8cfbde2bf77ee712b4dfd783a0 | |
parent | 5fd875e3c20895e6ef30bb4c5416d32c853ee314 (diff) | |
download | LegacyCamera-9c0f684c416ff74b71c289a9c195e9a95b4f0563.zip LegacyCamera-9c0f684c416ff74b71c289a9c195e9a95b4f0563.tar.gz LegacyCamera-9c0f684c416ff74b71c289a9c195e9a95b4f0563.tar.bz2 |
Lift the upperbound of initial up-scaling.
http://b/issue?id=2223577
Change-Id: I9af997b342b16c5c7bef58e779e1c9fdbb42ac92
-rw-r--r-- | src/com/android/camera/ImageViewTouchBase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/ImageViewTouchBase.java b/src/com/android/camera/ImageViewTouchBase.java index 0cab8fc..ef2edeb 100644 --- a/src/com/android/camera/ImageViewTouchBase.java +++ b/src/com/android/camera/ImageViewTouchBase.java @@ -267,10 +267,10 @@ abstract class ImageViewTouchBase extends ImageView { float h = bitmap.getHeight(); matrix.reset(); - // We limit up-scaling to 2x otherwise the result may look bad if it's + // We limit up-scaling to 3x otherwise the result may look bad if it's // a small icon. - float widthScale = Math.min(viewWidth / w, 2.0f); - float heightScale = Math.min(viewHeight / h, 2.0f); + float widthScale = Math.min(viewWidth / w, 3.0f); + float heightScale = Math.min(viewHeight / h, 3.0f); float scale = Math.min(widthScale, heightScale); matrix.postConcat(bitmap.getRotateMatrix()); |