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
1 changed files with 15 additions and 0 deletions
|
@ -365,6 +365,21 @@ void GfxView::unpackCel(int16 loopNo, int16 celNo, byte *outPtr, uint32 pixelCou
|
||||||
break;
|
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 {
|
} else {
|
||||||
// literal stream only, so no compression
|
// literal stream only, so no compression
|
||||||
memcpy(outPtr, literalPtr, pixelCount);
|
memcpy(outPtr, literalPtr, pixelCount);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue