mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
More cleanup
This commit is contained in:
parent
abf8fc5ef0
commit
bc3fdfcd09
@ -373,7 +373,6 @@ 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.word++;
|
short lines = *(short*) data.word++;
|
||||||
// data += 2;
|
|
||||||
|
|
||||||
// LINE: BETA10 0x1013e666
|
// LINE: BETA10 0x1013e666
|
||||||
short row = p_flcHeader->height - yofs - 1;
|
short row = p_flcHeader->height - yofs - 1;
|
||||||
@ -389,8 +388,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
start_packet:
|
start_packet:
|
||||||
// LINE: LEGO1 0x100bdaef
|
// LINE: LEGO1 0x100bdaef
|
||||||
// LINE: BETA10 0x1013e692
|
// LINE: BETA10 0x1013e692
|
||||||
token = *(short*) data.word;
|
token = *(short*) data.word++;
|
||||||
data.byte += 2;
|
|
||||||
// LINE: LEGO1 0x100bdafb
|
// LINE: LEGO1 0x100bdafb
|
||||||
if (token >= 0) {
|
if (token >= 0) {
|
||||||
goto column_loop;
|
goto column_loop;
|
||||||
@ -402,8 +400,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
|
|
||||||
// LINE: LEGO1 0x100bdb0a
|
// LINE: LEGO1 0x100bdb0a
|
||||||
WritePixel(p_bitmapHeader, p_pixelData, xmax, row, token);
|
WritePixel(p_bitmapHeader, p_pixelData, xmax, row, token);
|
||||||
token = *(short*) data.word;
|
token = *(short*) data.word++;
|
||||||
data.byte += 2;
|
|
||||||
|
|
||||||
// LINE: LEGO1 0x100bdb2f
|
// LINE: LEGO1 0x100bdb2f
|
||||||
// LINE: BETA10 0x1013e6ef
|
// LINE: BETA10 0x1013e6ef
|
||||||
@ -422,7 +419,6 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
short column = xofs;
|
short column = xofs;
|
||||||
|
|
||||||
column_loop_inner:
|
column_loop_inner:
|
||||||
// LINE: LEGO1 0x100bdb50
|
|
||||||
// LINE: BETA10 0x1013e726
|
// LINE: BETA10 0x1013e726
|
||||||
column += *data.byte++;
|
column += *data.byte++;
|
||||||
// LINE: BETA10 0x1013e73a
|
// LINE: BETA10 0x1013e73a
|
||||||
@ -445,8 +441,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
}
|
}
|
||||||
|
|
||||||
type = -type;
|
type = -type;
|
||||||
WORD* p_pixel = (WORD*) data.byte;
|
WORD* p_pixel = (WORD*) data.word++;
|
||||||
data.byte += 2;
|
|
||||||
WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, *p_pixel, type >> 1);
|
WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, *p_pixel, type >> 1);
|
||||||
column += type;
|
column += type;
|
||||||
// LINE: BETA10 0x1013e813
|
// LINE: BETA10 0x1013e813
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user