mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-18 05:51:15 +00:00
Improve match
This commit is contained in:
parent
637db10feb
commit
e66d9ba0d6
@ -389,26 +389,30 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
token = *(short*) data;
|
token = *(short*) data;
|
||||||
data += 2;
|
data += 2;
|
||||||
|
|
||||||
if (token < 0) {
|
if (token >= 0) {
|
||||||
if (token & 0x4000) {
|
goto column_loop_2;
|
||||||
goto weird_code;
|
|
||||||
}
|
|
||||||
|
|
||||||
WritePixel(p_bitmapHeader, p_pixelData, xmax, row, token);
|
|
||||||
token = *(short*) data;
|
|
||||||
data += 2;
|
|
||||||
|
|
||||||
// LINE: BETA10 0x1013e6ef
|
|
||||||
if (!token) {
|
|
||||||
row--;
|
|
||||||
if (--lines > 0) {
|
|
||||||
continue;
|
|
||||||
// return;
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
// TODO: Something is off about these breaks and jumps -- too many JMP instructions
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if (token & 0x4000) {
|
||||||
|
goto weird_code;
|
||||||
|
}
|
||||||
|
|
||||||
|
WritePixel(p_bitmapHeader, p_pixelData, xmax, row, token);
|
||||||
|
token = *(short*) data;
|
||||||
|
data += 2;
|
||||||
|
|
||||||
|
// LINE: BETA10 0x1013e6ef
|
||||||
|
if (!token) {
|
||||||
|
row--;
|
||||||
|
if (--lines > 0) {
|
||||||
|
continue;
|
||||||
|
// return;
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
// TODO: Something is off about these breaks and jumps -- too many JMP instructions
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
|
column_loop_2:
|
||||||
// LINE: BETA10 0x1013e71e
|
// LINE: BETA10 0x1013e71e
|
||||||
short column = xofs;
|
short column = xofs;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user