From a14948d33fbf20cfc4e5747f0c19de53d1063b87 Mon Sep 17 00:00:00 2001 From: neuromancer Date: Fri, 3 Jun 2022 20:52:04 +0200 Subject: [PATCH] HYPNO: fixed colors in the default cursor used in wet demo --- engines/hypno/cursors.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/engines/hypno/cursors.cpp b/engines/hypno/cursors.cpp index bc178902234..aeb34c183a1 100644 --- a/engines/hypno/cursors.cpp +++ b/engines/hypno/cursors.cpp @@ -88,12 +88,19 @@ static const byte crosshairCursor[] = { 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0}; static const byte cursorPalette[] = { - 0x00, 0x00, 0x00, // Black / Transparent + 0x00, 0x00, 0x00, // Transparent 0x00, 0x00, 0xff, // Blue 0xff, 0x00, 0x00, // Red 0xff, 0xff, 0xff // White }; +static const byte sciCursorPalette[] = { + 0x00, 0x00, 0x00, // Transparent + 0xff, 0xff, 0xff, // Black + 0xff, 0x00, 0x00, // Red + 0xff, 0xff, 0xff // White +}; + struct CursorTable { const char *name; const void *buf; @@ -133,7 +140,10 @@ void HypnoEngine::changeCursor(const Common::String &cursor) { } assert(entry->name); - CursorMan.replaceCursorPalette(cursorPalette, 0, 3); + if (cursor == "default") + CursorMan.replaceCursorPalette(sciCursorPalette, 0, 3); + else + CursorMan.replaceCursorPalette(cursorPalette, 0, 3); CursorMan.replaceCursor(entry->buf, entry->w, entry->h, entry->hotspotX, entry->hotspotY, 0); CursorMan.showMouse(true); }