SCUMM: Fix bug #2952298 - HE (16Bit): Inventory items (Cursors) have wrong color.

svn-id: r53552
This commit is contained in:
Travis Howell 2010-10-17 12:44:56 +00:00
parent 4d28de5623
commit 728a231d7b
2 changed files with 4 additions and 2 deletions

View File

@ -358,6 +358,7 @@ static bool calcClipRects(int dst_w, int dst_h, int src_x, int src_y, int src_w,
void Wiz::writeColor(uint8 *dstPtr, int dstType, uint16 color) {
switch (dstType) {
case kDstCursor:
case kDstScreen:
WRITE_UINT16(dstPtr, color);
break;
@ -1519,7 +1520,7 @@ uint8 *Wiz::drawWizImage(int resNum, int state, int maskNum, int maskState, int
cw = width;
ch = height;
dstPitch = cw * _vm->_bytesPerPixel;
dstType = kDstMemory;
dstType = (_cursorImage) ? kDstCursor : kDstMemory;
} else {
if (dstResNum) {
uint8 *dstPtr = _vm->getResourceAddress(rtImage, dstResNum);

View File

@ -145,7 +145,8 @@ enum {
enum DstSurface {
kDstScreen = 0,
kDstMemory = 1,
kDstResource = 2
kDstResource = 2,
kDstCursor = 3
};
class ScummEngine_v71he;