Save progress (good example for new line annotation diff output)

This commit is contained in:
jonschz 2025-05-04 11:08:19 +02:00
parent 103f52ccef
commit 7fa55f8425

View File

@ -412,7 +412,7 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
} }
short column = xofs; short column = xofs;
do { while (1) {
column += *(data++); column += *(data++);
short type = *((char*) data++); short type = *((char*) data++);
type += type; type += type;
@ -421,15 +421,22 @@ void DecodeSS2(LPBITMAPINFOHEADER p_bitmapHeader, BYTE* p_pixelData, BYTE* p_dat
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 += type;
// LINE: BETA10 0x1013e797
if (--token == 0) {
break;
}
} }
else { else {
type = -type; type = -type;
short p_pixel = *((WORD*) data); // removed for stack size short p_pixel = *((WORD*) data++);
data += 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
if (--token == 0) {
break;
}
} }
} while (--token); }
row--; row--;
} while (--lines > 0); } while (--lines > 0);