diff options
-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; |