Add more small fixes

This commit is contained in:
jonschz 2025-05-04 11:02:32 +02:00
parent 608faafe9e
commit 103f52ccef

View File

@ -380,28 +380,28 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
do { do {
// TODO: Can the typecast be removed?
// LINE: BETA10 0x1013e692 // LINE: BETA10 0x1013e692
token = *((short*) data); token = *((short*) data++);
data += 2; // TODO: likely an otherData assignment
if (token < 0) { if (token < 0) {
if (token & 0x4000) { if (token & 0x4000) {
// TODO: Make the compiler move this code all the way to the top of the loop // TODO: Make the compiler move this code all the way to the top of the loop
// // LINE: BETA10 0x1013e684 // // LINE: BETA10 0x1013e684
row += token; row += token;
// TODO: otherData assigment
continue; continue;
} }
WritePixel(p_bitmapHeader, p_pixelData, width, row, token); WritePixel(p_bitmapHeader, p_pixelData, width, row, token);
token = *((WORD*) data); token = *((WORD*) data++);
data += 2;
// LINE: BETA10 0x1013e6ef
if (!token) { if (!token) {
row--; row--;
if (--lines <= 0) { if (--lines <= 0) {
return; return;
} }
// TODO: Something is off about these breaks and jumps -- too many JMP instructions
} }
else { else {
break; break;
@ -411,7 +411,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
break; break;
} }
short column = 0; short column = xofs;
do { do {
column += *(data++); column += *(data++);
short type = *((char*) data++); short type = *((char*) data++);