mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 16:58:26 +00:00
SCI: figured out weird special mac sci1.1 view decompression (currently commented out for clone2727)
svn-id: r49020
This commit is contained in:
parent
7329e815af
commit
49d41d891b
@ -365,6 +365,21 @@ void GfxView::unpackCel(int16 loopNo, int16 celNo, byte *outPtr, uint32 pixelCou
|
||||
break;
|
||||
}
|
||||
}
|
||||
// Crazy-Ass mac compression for clone2727
|
||||
// uint32 pixelLine;
|
||||
// while (pixelNo < pixelCount) {
|
||||
// pixelLine = pixelNo;
|
||||
// runLength = *rlePtr++;
|
||||
// pixelNo += runLength;
|
||||
// runLength = *rlePtr++;
|
||||
// while (runLength-- && pixelNo < pixelCount) {
|
||||
// outPtr[pixelNo] = *literalPtr++;
|
||||
// if (outPtr[pixelNo] == 255)
|
||||
// outPtr[pixelNo] = 0;
|
||||
// pixelNo++;
|
||||
// }
|
||||
// pixelNo = pixelLine + celInfo->width;
|
||||
// }
|
||||
} else {
|
||||
// literal stream only, so no compression
|
||||
memcpy(outPtr, literalPtr, pixelCount);
|
||||
|
Loading…
x
Reference in New Issue
Block a user