diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/imageshow/ImageShow.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageShow.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java index 13f18dc45..63de9ccbd 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageShow.java @@ -99,10 +99,7 @@ public class ImageShow extends View implements OnGestureListener, } public boolean hasModifications() { - if (getImagePreset() == null) { - return false; - } - return getImagePreset().hasModifications(); + return MasterImage.getImage().hasModifications(); } public void resetParameter() { @@ -321,9 +318,9 @@ public class ImageShow extends View implements OnGestureListener, int py = 0; if (mShowOriginalDirection == UNVEIL_VERTICAL) { px = mImageBounds.width(); - py = (int) (mTouch.y - mImageBounds.top); + py = mTouch.y - mImageBounds.top; } else { - px = (int) (mTouch.x - mImageBounds.left); + px = mTouch.x - mImageBounds.left; py = mImageBounds.height(); if (showsOriginal) { px = mImageBounds.width(); |