mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-18 14:01: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) {
|
if (type >= 0) {
|
||||||
WritePixels(p_bitmapHeader, p_pixelData, column, row, (BYTE*) data, type);
|
WritePixels(p_bitmapHeader, p_pixelData, column, row, (BYTE*) data, type);
|
||||||
column += type;
|
column += type;
|
||||||
data += type;
|
data = (short*)( (char*)data + type);
|
||||||
// LINE: BETA10 0x1013e797
|
// LINE: BETA10 0x1013e797
|
||||||
if (--token == 0) {
|
if (--token == 0) {
|
||||||
break;
|
break;
|
||||||
@ -428,8 +428,8 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
type = -type;
|
type = -type;
|
||||||
short p_pixel = *((WORD*) data++);
|
WORD* p_pixel = ((WORD*) data++);
|
||||||
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
|
||||||
if (--token == 0) {
|
if (--token == 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user