[Android] Fix game banners

Use Bitmap.setPixels() instead of Bitmap.copyPixelsFromBuffer() the former
use non pre-multiplied values of the colors which is what we expect to
come from the native code.
This commit is contained in:
Mahdi Hijazi 2017-04-27 20:39:19 +02:00
parent 8028564a07
commit 1e73f3c76e
1 changed files with 0 additions and 1 deletions

View File

@ -25,7 +25,6 @@ public class GameBannerRequestHandler extends RequestHandler {
int height = 32;
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(vector, 0, width, 0, 0, width, height);
bitmap.copyPixelsFromBuffer(IntBuffer.wrap(vector));
return new Result(bitmap, Picasso.LoadedFrom.DISK);
}
}