mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-11 18:51:16 +00:00
small fixes
This commit is contained in:
parent
7fa55f8425
commit
b249757c54
@ -420,7 +420,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
||||
if (type >= 0) {
|
||||
WritePixels(p_bitmapHeader, p_pixelData, column, row, (BYTE*) data, type);
|
||||
column += type;
|
||||
data += type;
|
||||
data = (short*)( (char*)data + type);
|
||||
// LINE: BETA10 0x1013e797
|
||||
if (--token == 0) {
|
||||
break;
|
||||
@ -428,8 +428,8 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
||||
}
|
||||
else {
|
||||
type = -type;
|
||||
short p_pixel = *((WORD*) data++);
|
||||
WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, p_pixel, type >> 1);
|
||||
WORD* p_pixel = ((WORD*) data++);
|
||||
WritePixelPairs(p_bitmapHeader, p_pixelData, column, row, *p_pixel, type >> 1);
|
||||
column += type;
|
||||
// LINE: BETA10 0x1013e813
|
||||
if (--token == 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user