aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2007-04-15 14:43:23 +0000
committerTravis Howell2007-04-15 14:43:23 +0000
commit69828cf56c2a090f1e4a354ac6095446c11588fc (patch)
treead8448d9c095cd834fb5e143a1dbfffb0b3cf1b3 /engines
parentb9443dfb60e533d614c4914dfabb4e75e45cdf38 (diff)
downloadscummvm-rg350-69828cf56c2a090f1e4a354ac6095446c11588fc.tar.gz
scummvm-rg350-69828cf56c2a090f1e4a354ac6095446c11588fc.tar.bz2
scummvm-rg350-69828cf56c2a090f1e4a354ac6095446c11588fc.zip
Fix mouse regression in Swampy Adventures.
svn-id: r26503
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/agos.h2
-rw-r--r--engines/agos/cursor.cpp12
2 files changed, 11 insertions, 3 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h
index fc9b179fd7..c6a643d721 100644
--- a/engines/agos/agos.h
+++ b/engines/agos/agos.h
@@ -1566,6 +1566,8 @@ protected:
const OpcodeEntryPuzzlePack *_opcodesPuzzlePack;
+ virtual void drawMousePointer();
+
virtual void resetVerbs();
void loadMouseImage();
diff --git a/engines/agos/cursor.cpp b/engines/agos/cursor.cpp
index f52fddb5e0..47ec6797d3 100644
--- a/engines/agos/cursor.cpp
+++ b/engines/agos/cursor.cpp
@@ -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);