aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/cursor.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-10-28 11:34:56 +0000
committerTravis Howell2006-10-28 11:34:56 +0000
commitc85c37561d224de6740dca6afb982e359bc91425 (patch)
tree4976b8422241bd8c524ebaf04f888079b6b4317d /engines/agos/cursor.cpp
parentaa6a92ac6d5e5bd8e67e1aa28ef5d4cf0406e68d (diff)
downloadscummvm-rg350-c85c37561d224de6740dca6afb982e359bc91425.tar.gz
scummvm-rg350-c85c37561d224de6740dca6afb982e359bc91425.tar.bz2
scummvm-rg350-c85c37561d224de6740dca6afb982e359bc91425.zip
Fix cursor palette in Elvira 1
svn-id: r24552
Diffstat (limited to 'engines/agos/cursor.cpp')
-rw-r--r--engines/agos/cursor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agos/cursor.cpp b/engines/agos/cursor.cpp
index ab2c5f2cbf..f7aa496949 100644
--- a/engines/agos/cursor.cpp
+++ b/engines/agos/cursor.cpp
@@ -527,6 +527,7 @@ void AGOSEngine::drawMousePointer() {
const uint16 *src;
int i, j;
+ const uint8 color = (getGameType() == GType_ELVIRA1) ? 15: 65;
memset(_mouseData, 0xFF, _maxCursorWidth * _maxCursorHeight);
uint cursor = _mouseCursor;
@@ -542,7 +543,7 @@ void AGOSEngine::drawMousePointer() {
for (j = 0; j < 16; j++) {
if (src[0] & (1 << (15 - (j % 16)))) {
if (src[1] & (1 << (15 - (j % 16)))) {
- _mouseData[16 * i + j] = 65;
+ _mouseData[16 * i + j] = color;
} else {
_mouseData[16 * i + j] = 0;
}