Skip to content

Commit

Permalink
Don't dither when loading RGB_565.
Browse files Browse the repository at this point in the history
Fixes #412.
  • Loading branch information
sjudd committed Apr 15, 2015
1 parent 59209d8 commit 6c85b13
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ private Bitmap downsampleWithSize(MarkEnforcingInputStream is, RecyclableBuffere
Bitmap.Config config = getConfig(is, decodeFormat);
options.inSampleSize = sampleSize;
options.inPreferredConfig = config;
if (options.inPreferredConfig != Bitmap.Config.ARGB_8888) {
options.inDither = true;
}
if ((options.inSampleSize == 1 || Build.VERSION_CODES.KITKAT <= Build.VERSION.SDK_INT) && shouldUsePool(is)) {
int targetWidth = (int) Math.ceil(inWidth / (double) sampleSize);
int targetHeight = (int) Math.ceil(inHeight / (double) sampleSize);
Expand Down

0 comments on commit 6c85b13

Please sign in to comment.