Fix mouse regression in Swampy Adventures.

svn-id: r26503
This commit is contained in:
Travis Howell 2007-04-15 14:43:23 +00:00
parent b9443dfb60
commit 69828cf56c
2 changed files with 11 additions and 3 deletions

View File

@ -1566,6 +1566,8 @@ protected:
const OpcodeEntryPuzzlePack *_opcodesPuzzlePack;
virtual void drawMousePointer();
virtual void resetVerbs();
void loadMouseImage();

View File

@ -502,6 +502,14 @@ void AGOSEngine_PuzzlePack::loadMouseImage() {
memcpy(_mouseData, src, _maxCursorWidth * _maxCursorHeight);
}
void AGOSEngine_PuzzlePack::drawMousePointer() {
if (getGameId() == GID_DIMP) {
AGOSEngine::drawMousePointer();
} else {
CursorMan.replaceCursor(_mouseData, _maxCursorWidth, _maxCursorHeight, 37, 48, 0);
}
}
void AGOSEngine_Feeble::drawMousePart(int image, byte x, byte y) {
VgaPointersEntry *vpe = &_vgaBufferPointers[7];
byte *src;
@ -586,9 +594,7 @@ void AGOSEngine_Feeble::drawMousePointer() {
}
void AGOSEngine::drawMousePointer() {
if (getGameType() == GType_PP && getGameId() != GID_DIMP) {
CursorMan.replaceCursor(_mouseData, _maxCursorWidth, _maxCursorHeight, 37, 48, 0);
} else if (getGameType() == GType_SIMON2) {
if (getGameType() == GType_SIMON2) {
CursorMan.replaceCursor(_simon2_cursors[_mouseCursor], 16, 16, 7, 7);
} else if (getGameType() == GType_SIMON1) {
CursorMan.replaceCursor(_mouseData, 16, 16, 0, 0, 0xFF);