From 09368e09f2b1614b70ef28205933bc0e7f8da633 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 24 Aug 2003 17:37:28 +0000 Subject: fix for bug #786994 (DOTT: no custom cursor) svn-id: r9850 --- scumm/gfx.cpp | 8 ++++++++ scumm/scumm.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'scumm') 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); -- cgit v1.2.3