diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/category/Action.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/category/Action.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/Action.java b/src/com/android/gallery3d/filtershow/category/Action.java index 62bd99bc7..71d6415b8 100644 --- a/src/com/android/gallery3d/filtershow/category/Action.java +++ b/src/com/android/gallery3d/filtershow/category/Action.java @@ -72,7 +72,7 @@ public class Action implements RenderingRequestCaller { mName = name; } - public void setImageFrame(Rect imageFrame) { + public void setImageFrame(Rect imageFrame, int orientation) { if (mImageFrame != null && mImageFrame.equals(imageFrame)) { return; } @@ -81,7 +81,8 @@ public class Action implements RenderingRequestCaller { mImageFrame = imageFrame; int w = mImageFrame.width(); int h = mImageFrame.height(); - if (mType == CROP_VIEW) { + if (orientation == CategoryView.VERTICAL + && mType == CROP_VIEW) { w /= 2; } Bitmap bitmapCrop = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); |