aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-08-24 17:37:28 +0000
committerMax Horn2003-08-24 17:37:28 +0000
commit09368e09f2b1614b70ef28205933bc0e7f8da633 (patch)
tree619a6468ff25d0253a5fbff5de7b574d214b1843 /scumm
parent011d7b897d96029470cf85fe3dafc569185751b2 (diff)
downloadscummvm-rg350-09368e09f2b1614b70ef28205933bc0e7f8da633.tar.gz
scummvm-rg350-09368e09f2b1614b70ef28205933bc0e7f8da633.tar.bz2
scummvm-rg350-09368e09f2b1614b70ef28205933bc0e7f8da633.zip
fix for bug #786994 (DOTT: no custom cursor)
svn-id: r9850
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp8
-rw-r--r--scumm/scumm.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index a796535281..fdb87f077e 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -3374,6 +3374,14 @@ void Scumm::updatePalette() {
#pragma mark --- Cursor ---
#pragma mark -
+void Scumm::setupCursor() {
+ _cursor.animate = 1;
+ if (_gameId == GID_TENTACLE) {
+ setCursorImg(697, 60, 1);
+ makeCursorColorTransparent(1);
+ }
+}
+
void Scumm::grabCursor(int x, int y, int w, int h) {
VirtScreen *vs = findVirtScreen(y);
diff --git a/scumm/scumm.h b/scumm/scumm.h
index 4f81d779f0..6e0f409063 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -909,7 +909,7 @@ protected:
void grabCursor(int x, int y, int w, int h);
void grabCursor(byte *ptr, int width, int height);
void makeCursorColorTransparent(int a);
- void setupCursor() { _cursor.animate = 1; }
+ void setupCursor();
void decompressDefaultCursor(int index);
void useIm01Cursor(const byte *im, int w, int h);
void useBompCursor(const byte *im, int w, int h);