From 1e73f3c76eb562d78b8c5bb0a0a9edf602f1dd9f Mon Sep 17 00:00:00 2001 From: Mahdi Hijazi Date: Thu, 27 Apr 2017 20:39:19 +0200 Subject: [PATCH] [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. --- .../dolphinemu/dolphinemu/utils/GameBannerRequestHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/GameBannerRequestHandler.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/GameBannerRequestHandler.java index 526fb7fa2a..ef95cd7712 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/GameBannerRequestHandler.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/GameBannerRequestHandler.java @@ -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); } }