diff options
author | Owen Lin <owenlin@google.com> | 2009-10-29 00:25:23 -0700 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-10-29 09:06:29 -0700 |
commit | be2f475fe49538e38753ad391fb3176f9b0d1c69 (patch) | |
tree | 66e385f6bbbe02a9e91a6582a6e4f65f209550a0 /src/com/android/camera | |
parent | 9c56e50e3f9f74cbbfd7fcc0e9ea2d8b0bcc7691 (diff) | |
download | Gallery-be2f475fe49538e38753ad391fb3176f9b0d1c69.tar.gz |
Lift the upperbound of the up-scaling when view image.
http://b/issue?id=2223577
Change-Id: I579827b3aa42ed56c0d2dc95df1cf415575b2d5c
Diffstat (limited to 'src/com/android/camera')
-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()); |