mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -25,7 +25,6 @@ public class GameBannerRequestHandler extends RequestHandler {
|
|||||||
int height = 32;
|
int height = 32;
|
||||||
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
||||||
bitmap.setPixels(vector, 0, width, 0, 0, width, height);
|
bitmap.setPixels(vector, 0, width, 0, 0, width, height);
|
||||||
bitmap.copyPixelsFromBuffer(IntBuffer.wrap(vector));
|
|
||||||
return new Result(bitmap, Picasso.LoadedFrom.DISK);
|
return new Result(bitmap, Picasso.LoadedFrom.DISK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user