mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-16 21:11:15 +00:00
Add more small fixes
This commit is contained in:
parent
608faafe9e
commit
103f52ccef
@ -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++);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user