[Scummvm-git-logs] scummvm master -> a14948d33fbf20cfc4e5747f0c19de53d1063b87
neuromancer
noreply at scummvm.org
Fri Jun 3 18:53:16 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a14948d33f HYPNO: fixed colors in the default cursor used in wet demo
Commit: a14948d33fbf20cfc4e5747f0c19de53d1063b87
https://github.com/scummvm/scummvm/commit/a14948d33fbf20cfc4e5747f0c19de53d1063b87
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-06-03T20:52:10+02:00
Commit Message:
HYPNO: fixed colors in the default cursor used in wet demo
Changed paths:
engines/hypno/cursors.cpp
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);
}
More information about the Scummvm-git-logs
mailing list