diff options
author | nicolasroard <nicolasroard@google.com> | 2013-08-14 17:02:38 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2013-08-14 17:02:38 -0700 |
commit | 330e19d627a3a5e91a68ad21516b1ba9990cb2fa (patch) | |
tree | 704a5f6c9194a35d9b54dc5898950de4852002a1 /src/com/android/gallery3d/filtershow/imageshow | |
parent | 20667d21eac2074b0e265d8839539bd9cfec9f92 (diff) | |
download | android_packages_apps_Gallery2-330e19d627a3a5e91a68ad21516b1ba9990cb2fa.tar.gz android_packages_apps_Gallery2-330e19d627a3a5e91a68ad21516b1ba9990cb2fa.tar.bz2 android_packages_apps_Gallery2-330e19d627a3a5e91a68ad21516b1ba9990cb2fa.zip |
Fix for clipped shadow
Change-Id: I41b10f41499a9de168ff619c8c348860243a889f
Diffstat (limited to 'src/com/android/gallery3d/filtershow/imageshow')
-rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageShow.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java index 38f465066..b0352de3d 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java @@ -284,8 +284,10 @@ public class ImageShow extends View implements OnGestureListener, float ty = (getHeight() - h) / 2.0f; float tx = (getWidth() - w) / 2.0f; - Rect d = new Rect((int) tx, (int) ty, (int) (w + tx), - (int) (h + ty)); + Rect d = new Rect((int) tx + mShadowMargin, + (int) ty + mShadowMargin, + (int) (w + tx) - mShadowMargin, + (int) (h + ty) - mShadowMargin); if (updateBounds) { mImageBounds = d; } |