mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 06:00:48 +00:00
Fix xmap regression, when drawing wiz images.
svn-id: r26119
This commit is contained in:
parent
594296c3e3
commit
1e8047a5d2
@ -553,7 +553,7 @@ void Wiz::decompressWizImage(uint8 *dst, int dstPitch, const uint8 *src, const C
|
|||||||
int h, w, xoff, dstInc;
|
int h, w, xoff, dstInc;
|
||||||
|
|
||||||
if (type == kWizXMap) {
|
if (type == kWizXMap) {
|
||||||
assert(palPtr != 0 && xmapPtr != 0);
|
assert(xmapPtr != 0);
|
||||||
}
|
}
|
||||||
if (type == kWizRMap) {
|
if (type == kWizRMap) {
|
||||||
assert(palPtr != 0);
|
assert(palPtr != 0);
|
||||||
@ -619,7 +619,7 @@ void Wiz::decompressWizImage(uint8 *dst, int dstPitch, const uint8 *src, const C
|
|||||||
}
|
}
|
||||||
while (code--) {
|
while (code--) {
|
||||||
if (type == kWizXMap) {
|
if (type == kWizXMap) {
|
||||||
*dstPtr = xmapPtr[palPtr[*dataPtr] * 256 + *dstPtr];
|
*dstPtr = xmapPtr[*dataPtr * 256 + *dstPtr];
|
||||||
}
|
}
|
||||||
if (type == kWizRMap) {
|
if (type == kWizRMap) {
|
||||||
*dstPtr = palPtr[*dataPtr];
|
*dstPtr = palPtr[*dataPtr];
|
||||||
@ -647,7 +647,7 @@ void Wiz::decompressWizImage(uint8 *dst, int dstPitch, const uint8 *src, const C
|
|||||||
}
|
}
|
||||||
while (code--) {
|
while (code--) {
|
||||||
if (type == kWizXMap) {
|
if (type == kWizXMap) {
|
||||||
*dstPtr = xmapPtr[palPtr[*dataPtr++] * 256 + *dstPtr];
|
*dstPtr = xmapPtr[*dataPtr++ * 256 + *dstPtr];
|
||||||
}
|
}
|
||||||
if (type == kWizRMap) {
|
if (type == kWizRMap) {
|
||||||
*dstPtr = palPtr[*dataPtr++];
|
*dstPtr = palPtr[*dataPtr++];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user