mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-16 04:51:16 +00:00
Minor fixes
This commit is contained in:
parent
cec1be50f7
commit
637db10feb
@ -369,7 +369,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
|
|
||||||
// The first word in the data following the chunk header contains the number of lines in the chunk.
|
// The first word in the data following the chunk header contains the number of lines in the chunk.
|
||||||
// The line count does not include skipped lines.
|
// The line count does not include skipped lines.
|
||||||
short lines = *(short *)data;
|
short lines = *(short*) data;
|
||||||
data += 2;
|
data += 2;
|
||||||
|
|
||||||
// LINE: BETA10 0x1013e666
|
// LINE: BETA10 0x1013e666
|
||||||
@ -394,7 +394,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
goto weird_code;
|
goto weird_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
WritePixel(p_bitmapHeader, p_pixelData, width, row, token);
|
WritePixel(p_bitmapHeader, p_pixelData, xmax, row, token);
|
||||||
token = *(short*) data;
|
token = *(short*) data;
|
||||||
data += 2;
|
data += 2;
|
||||||
|
|
||||||
@ -413,11 +413,9 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
short column = xofs;
|
short column = xofs;
|
||||||
|
|
||||||
column_loop:
|
column_loop:
|
||||||
|
|
||||||
// TODO: some movzx / movsx discrepancy here
|
|
||||||
|
|
||||||
column += *data++;
|
column += *data++;
|
||||||
short type = *data++;
|
// LINE: BETA10 0x1013e73a
|
||||||
|
short type = *(char*) data++;
|
||||||
type += type;
|
type += type;
|
||||||
|
|
||||||
if (type >= 0) {
|
if (type >= 0) {
|
||||||
@ -450,8 +448,6 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// break;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user