OSDN Git Service

forced fx bitmaps to load unscaled
authorJohn Hoford <hoford@google.com>
Wed, 10 Oct 2012 23:13:36 +0000 (16:13 -0700)
committerJohn Hoford <hoford@google.com>
Wed, 10 Oct 2012 23:17:15 +0000 (16:17 -0700)
bug:7327105
Change-Id: I780638f6919e89ae957993732fdbe123e8d8e866

src/com/android/gallery3d/filtershow/FilterShowActivity.java

index aca7f42..f204e40 100644 (file)
@@ -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]));
         }