summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-10-04 13:22:05 -0700
committerBobby Georgescu <georgescu@google.com>2012-10-04 13:22:05 -0700
commitdc0954ec2aa11564fa1fcc665368c266a966d4bf (patch)
tree93365abad6838280fef9be50001f3726691f5690 /src/com
parent25ab25343c04ed845717b7d25d67be66c247e48d (diff)
downloadandroid_packages_apps_Snap-dc0954ec2aa11564fa1fcc665368c266a966d4bf.tar.gz
android_packages_apps_Snap-dc0954ec2aa11564fa1fcc665368c266a966d4bf.tar.bz2
android_packages_apps_Snap-dc0954ec2aa11564fa1fcc665368c266a966d4bf.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')
-rw-r--r--src/com/android/gallery3d/ui/SlideshowView.java4
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;