summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-06-11 19:37:43 -0700
committernicolasroard <nicolasroard@google.com>2013-06-11 19:39:22 -0700
commit8b0498d0cfed3e4cd5aa874760c222826bff64c6 (patch)
treee5d116c4dab4fc16d44ed19c8228f39f0204d6e0 /src/com
parent5791e2fbe36756806339182fcde4ce058ec1d203 (diff)
downloadandroid_packages_apps_Snap-8b0498d0cfed3e4cd5aa874760c222826bff64c6.tar.gz
android_packages_apps_Snap-8b0498d0cfed3e4cd5aa874760c222826bff64c6.tar.bz2
android_packages_apps_Snap-8b0498d0cfed3e4cd5aa874760c222826bff64c6.zip
Fix icon sizes and jaggies
bug:9105608 bug:8791729 Change-Id: I828e9d4daf4025f53d505a3412c27dd8c54a607e
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/category/Action.java2
-rw-r--r--src/com/android/gallery3d/filtershow/tools/IconFactory.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/category/Action.java b/src/com/android/gallery3d/filtershow/category/Action.java
index 506b2bf0f..b46147961 100644
--- a/src/com/android/gallery3d/filtershow/category/Action.java
+++ b/src/com/android/gallery3d/filtershow/category/Action.java
@@ -134,7 +134,7 @@ public class Action implements RenderingRequestCaller {
m.mapRect(image);
m.setRectToRect(image, frame, Matrix.ScaleToFit.FILL);
Canvas canvas = new Canvas(destination);
- canvas.drawBitmap(source, m, new Paint());
+ canvas.drawBitmap(source, m, new Paint(Paint.FILTER_BITMAP_FLAG));
}
@Override
diff --git a/src/com/android/gallery3d/filtershow/tools/IconFactory.java b/src/com/android/gallery3d/filtershow/tools/IconFactory.java
index ccc49e13d..9e39f27fc 100644
--- a/src/com/android/gallery3d/filtershow/tools/IconFactory.java
+++ b/src/com/android/gallery3d/filtershow/tools/IconFactory.java
@@ -103,6 +103,6 @@ public class IconFactory {
rec.roundOut(srcRect);
}
- canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint());
+ canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG));
}
}