mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
[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:
parent
8028564a07
commit
1e73f3c76e
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue