1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00

Mi Band 8: Fix notification icons mirroring

This commit is contained in:
José Rebelo 2023-10-28 15:49:13 +01:00
parent 3948f95505
commit 8192106fc0

View File

@ -329,7 +329,8 @@ public class XiaomiNotificationService extends AbstractXiaomiService implements
final ByteBuffer buf = ByteBuffer.allocate(size * size * 4).order(ByteOrder.LITTLE_ENDIAN); final ByteBuffer buf = ByteBuffer.allocate(size * size * 4).order(ByteOrder.LITTLE_ENDIAN);
for (int x = 0; x < size; x++) { for (int x = 0; x < size; x++) {
for (int y = 0; y < size; y++) { for (int y = 0; y < size; y++) {
buf.putInt(bmpResized.getPixel(x, y)); //noinspection SuspiciousNameCombination x and y are flipped on purpose
buf.putInt(bmpResized.getPixel(y, x));
} }
} }