diff options
author | Eugene Sandulenko | 2006-11-23 06:45:21 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-23 06:45:21 +0000 |
commit | 207ef00754e3c7363d3489a0e1957a392c4343e2 (patch) | |
tree | c4febd6d46b2dc28193391f32f2bfa0e8e7daef7 /engines | |
parent | e09eaa074e5626e1d8004e8c13262136c1793dce (diff) | |
download | scummvm-rg350-207ef00754e3c7363d3489a0e1957a392c4343e2.tar.gz scummvm-rg350-207ef00754e3c7363d3489a0e1957a392c4343e2.tar.bz2 scummvm-rg350-207ef00754e3c7363d3489a0e1957a392c4343e2.zip |
et up cursor palette. This fixes Amiga/Atari versions and makes cursor more
visible in most cases.
svn-id: r24766
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/gfx.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index c99f2269f4..46a7eb26d0 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -28,6 +28,7 @@ #include "common/system.h" #include "graphics/cursorman.h" +#include "graphics/paletteman.h" namespace Cine { @@ -87,6 +88,11 @@ static const struct MouseCursor { { 7, 7, mouseCursorCross } }; +static const byte cursorPalette[] = { + 0, 0, 0, 0xff, + 0xff, 0xff, 0xff, 0xff +}; + void init_video() { screenBuffer = (byte *)malloc(320 * 200 * 3); assert(screenBuffer); @@ -108,7 +114,7 @@ void setMouseCursor(int cursor) { int offs = i * 8; for (byte mask = 0x80; mask != 0; mask >>= 1) { if (src[0] & mask) { - mouseCursor[offs] = 2; + mouseCursor[offs] = 1; } else if (src[32] & mask) { mouseCursor[offs] = 0; } else { @@ -119,6 +125,7 @@ void setMouseCursor(int cursor) { ++src; } CursorMan.replaceCursor(mouseCursor, 16, 16, mc->hotspotX, mc->hotspotY); + PaletteMan.replaceCursorPalette(cursorPalette, 0, 2); currentMouseCursor = cursor; } } |