From 53f24f0fbfd787a4ab2f129499d2c7ef240a517f Mon Sep 17 00:00:00 2001 From: John Hoford Date: Wed, 10 Oct 2012 16:13:36 -0700 Subject: [PATCH] forced fx bitmaps to load unscaled bug:7327105 Change-Id: I780638f6919e89ae957993732fdbe123e8d8e866 --- src/com/android/gallery3d/filtershow/FilterShowActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/gallery3d/filtershow/FilterShowActivity.java b/src/com/android/gallery3d/filtershow/FilterShowActivity.java index aca7f4280..f204e4020 100644 --- a/src/com/android/gallery3d/filtershow/FilterShowActivity.java +++ b/src/com/android/gallery3d/filtershow/FilterShowActivity.java @@ -425,9 +425,11 @@ public class FilterShowActivity extends Activity implements OnItemClickListener, }; preset[p++] = new ImagePreset(); + BitmapFactory.Options o = new BitmapFactory.Options(); + o.inScaled = false; for (int i = 0; i < drawid.length; i++) { - Bitmap b = BitmapFactory.decodeResource(getResources(), drawid[i]); + Bitmap b = BitmapFactory.decodeResource(getResources(), drawid[i], o); preset[p++] = new ImagePresetFX(b, getString(fxNameid[i])); } -- 2.11.0