diff options
author | Torbjörn Andersson | 2007-02-11 23:46:23 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-02-11 23:46:23 +0000 |
commit | 59eaade15df179df46bd28b4838887f5636ea3d9 (patch) | |
tree | 0d0906aeb99a645bc8d46613849365584175b771 | |
parent | ccd6417f88c82bdd0b296b5f7712712c4eceba19 (diff) | |
download | scummvm-rg350-59eaade15df179df46bd28b4838887f5636ea3d9.tar.gz scummvm-rg350-59eaade15df179df46bd28b4838887f5636ea3d9.tar.bz2 scummvm-rg350-59eaade15df179df46bd28b4838887f5636ea3d9.zip |
Make the mouse cursor white (instead of green) with a black outline on
platforms that support cursor palettes. Changed the cursor design slightly.
It's not necessarily better than the old one, but it matches the arrow cursor
used in early SCI games, which seems appropriate.
svn-id: r25499
-rw-r--r-- | engines/agi/graphics.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp index a5f8425874..be2ddeebab 100644 --- a/engines/agi/graphics.cpp +++ b/engines/agi/graphics.cpp @@ -25,6 +25,7 @@ #include "common/stdafx.h" #include "graphics/cursorman.h" +#include "graphics/paletteman.h" #include "agi/agi.h" #include "agi/graphics.h" @@ -390,14 +391,15 @@ void GfxMgr::gfxPutBlock(int x1, int y1, int x2, int y2) { } static const byte mouseCursorArrow[] = { + // This is the same arrow cursor that was later used in early SCI games 0x00, 0x00, 0x40, 0x00, 0x60, 0x00, 0x70, 0x00, 0x78, 0x00, 0x7C, 0x00, 0x7E, 0x00, 0x7F, 0x00, - 0x7F, 0x80, 0x7C, 0x00, 0x6C, 0x00, 0x46, 0x00, - 0x06, 0x00, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, - 0xC0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF8, 0x00, - 0xFC, 0x00, 0xFE, 0x00, 0xFF, 0x00, 0xFF, 0x80, - 0xFF, 0xC0, 0xFF, 0xC0, 0xFE, 0x00, 0xFF, 0x00, - 0xCF, 0x00, 0x07, 0x80, 0x07, 0x80, 0x03, 0x80 + 0x7F, 0x80, 0x7F, 0xC0, 0x7C, 0x00, 0x46, 0x00, + 0x06, 0x00, 0x03, 0x00, 0x03, 0x00, 0x01, 0x80, + 0xC0, 0x00, 0xA0, 0x00, 0x90, 0x00, 0x88, 0x00, + 0x84, 0x00, 0x82, 0x00, 0x81, 0x00, 0x80, 0x80, + 0x80, 0x40, 0x80, 0x20, 0x82, 0x00, 0xA9, 0x00, + 0xC9, 0x00, 0x04, 0x80, 0x04, 0x80, 0x02, 0x40 }; /** @@ -432,6 +434,14 @@ int GfxMgr::initVideo() { } ++src; } + + const byte cursorPalette[] = { + 0, 0, 0, 0, + 0, 0, 0, 0, + 255, 255, 255, 0 + }; + + PaletteMan.replaceCursorPalette(cursorPalette, 0, 3); CursorMan.replaceCursor(mouseCursor, 16, 16, 1, 1); return errOK; |