diff options
Diffstat (limited to 'src/com/android/camera/PhotoUI.java')
-rw-r--r-- | src/com/android/camera/PhotoUI.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java index 1c09913b9..6e321c535 100644 --- a/src/com/android/camera/PhotoUI.java +++ b/src/com/android/camera/PhotoUI.java @@ -397,14 +397,14 @@ public class PhotoUI implements PieListener, if (width > height) { if(Math.max(width, height * mAspectRatio) > width) { scaledTextureWidth = width; - scaledTextureHeight = height; + scaledTextureHeight = width / mAspectRatio; } else { scaledTextureWidth = height * mAspectRatio; scaledTextureHeight = height; } } else { if(Math.max(height, width * mAspectRatio) > height) { - scaledTextureWidth = width; + scaledTextureWidth = height / mAspectRatio; scaledTextureHeight = height; } else { scaledTextureWidth = width; |