mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 21:20:58 +00:00
Use paletteNum.
svn-id: r17562
This commit is contained in:
parent
973b4073c9
commit
fefd65c33c
@ -1145,7 +1145,7 @@ void ScummEngine_v72he::drawWizPolygon(int resNum, int state, int id, int flags,
|
|||||||
error("Invalid point count %d for Polygon %d", wp->numVerts, id);
|
error("Invalid point count %d for Polygon %d", wp->numVerts, id);
|
||||||
}
|
}
|
||||||
const Common::Rect *r = NULL;
|
const Common::Rect *r = NULL;
|
||||||
uint8 *srcWizBuf = drawWizImage(resNum, state, 0, 0, xmapNum, r, kWIFBlitToMemBuffer, dstResNum, paletteNum);
|
uint8 *srcWizBuf = drawWizImage(resNum, state, 0, 0, xmapNum, r, kWIFBlitToMemBuffer, 0, paletteNum);
|
||||||
if (srcWizBuf) {
|
if (srcWizBuf) {
|
||||||
uint8 *dst;
|
uint8 *dst;
|
||||||
VirtScreen *pvs = &virtscr[kMainVirtScreen];
|
VirtScreen *pvs = &virtscr[kMainVirtScreen];
|
||||||
@ -1228,10 +1228,10 @@ void ScummEngine_v72he::flushWizBuffer() {
|
|||||||
for (int i = 0; i < _wiz._imagesNum; ++i) {
|
for (int i = 0; i < _wiz._imagesNum; ++i) {
|
||||||
WizImage *pwi = &_wiz._images[i];
|
WizImage *pwi = &_wiz._images[i];
|
||||||
if (pwi->flags & kWIFIsPolygon) {
|
if (pwi->flags & kWIFIsPolygon) {
|
||||||
drawWizPolygon(pwi->resNum, pwi->state, pwi->x1, pwi->flags, pwi->xmapNum, 0, 0);
|
drawWizPolygon(pwi->resNum, pwi->state, pwi->x1, pwi->flags, pwi->xmapNum, 0, pwi->paletteNum);
|
||||||
} else {
|
} else {
|
||||||
const Common::Rect *r = NULL;
|
const Common::Rect *r = NULL;
|
||||||
drawWizImage(pwi->resNum, pwi->state, pwi->x1, pwi->y1, pwi->xmapNum, r, pwi->flags, 0, 0);
|
drawWizImage(pwi->resNum, pwi->state, pwi->x1, pwi->y1, pwi->xmapNum, r, pwi->flags, 0, pwi->paletteNum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_wiz._imagesNum = 0;
|
_wiz._imagesNum = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user