mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-31 01:44:27 +07:00
Fixed pixel buffer sign-extension for DccDecoder
This commit is contained in:
parent
7a8f303164
commit
8e90f3d999
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user