diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java b/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java index c55e5ae42..1149263df 100644 --- a/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java +++ b/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java @@ -77,18 +77,21 @@ public class ImageVignette extends ImageShow { mElipse.setScrToImageMatrix(getScreenToImageMatrix(true)); + boolean didComputeEllipses = false; switch (mask) { case (MotionEvent.ACTION_DOWN): mElipse.actionDown(x, y, mVignetteRep); break; case (MotionEvent.ACTION_UP): case (MotionEvent.ACTION_MOVE): - mElipse.actionMove(mActiveHandle, x, y, mVignetteRep); setRepresentation(mVignetteRep); + didComputeEllipses = true; break; } - computeEllipses(); + if (!didComputeEllipses) { + computeEllipses(); + } invalidate(); return true; } |