Fixed pixel buffer sign-extension for DccDecoder

This commit is contained in:
Collin Smith 2023-08-06 00:04:54 -07:00
parent 7a8f303164
commit 8e90f3d999

View File

@ -67,7 +67,7 @@ public final class DccDecoder {
// ));
// }
for (int c = 0, s = pixelBuffer.size << 2; c < s; c++) {
pixels[c] = (byte) PALETTE[pixels[c]];
pixels[c] = (byte) PALETTE[pixels[c] & 0xFF];
}
// for (int c = 0, s = pixelBuffer.size; c < s; c++) {
// final int c0 = (c << 2);