diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-10-04 13:22:05 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-10-04 13:22:05 -0700 |
commit | 7e6537ca106a80aeb4a52182b31ddc9aa642abe5 (patch) | |
tree | a17b3f67b20c317e1909257761e5a4872a84db65 /src/com/android/gallery3d/ui/SlideshowView.java | |
parent | 2abc1350cde24e810f6437592f099c149ce19ada (diff) | |
download | android_packages_apps_Gallery2-7e6537ca106a80aeb4a52182b31ddc9aa642abe5.tar.gz android_packages_apps_Gallery2-7e6537ca106a80aeb4a52182b31ddc9aa642abe5.tar.bz2 android_packages_apps_Gallery2-7e6537ca106a80aeb4a52182b31ddc9aa642abe5.zip |
Upscale images to fill screen for slideshow
Bug: 7110382
This fixes the slideshow mode on high-resolution
displays. Note that this will scale up screennails
to fill the screen even if they are fairly low quality.
The resolution to 7232758 will set the size of the
screennails appropriately based on screen size.
Change-Id: I7b5367c2fce1d10f6d5e70c1239d893f54236b10
Diffstat (limited to 'src/com/android/gallery3d/ui/SlideshowView.java')
-rw-r--r-- | src/com/android/gallery3d/ui/SlideshowView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/SlideshowView.java b/src/com/android/gallery3d/ui/SlideshowView.java index a057bb748..bb36c47e9 100644 --- a/src/com/android/gallery3d/ui/SlideshowView.java +++ b/src/com/android/gallery3d/ui/SlideshowView.java @@ -142,8 +142,8 @@ public class SlideshowView extends GLView { int viewWidth = getWidth(); int viewHeight = getHeight(); - float initScale = Math.min(2f, Math.min((float) - viewWidth / mWidth, (float) viewHeight / mHeight)); + float initScale = Math.min((float) + viewWidth / mWidth, (float) viewHeight / mHeight); float scale = initScale * (1 + SCALE_SPEED * mProgress); float centerX = viewWidth / 2 + mMovingVector.x * mProgress; |