diff options
Diffstat (limited to 'engines/wage/macwindowmanager.cpp')
-rw-r--r-- | engines/wage/macwindowmanager.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/engines/wage/macwindowmanager.cpp b/engines/wage/macwindowmanager.cpp index 66c5bf173c..c98c63532f 100644 --- a/engines/wage/macwindowmanager.cpp +++ b/engines/wage/macwindowmanager.cpp @@ -51,8 +51,10 @@ #include "common/unzip.h" #include "common/system.h" +#include "graphics/cursorman.h" #include "graphics/fonts/bdf.h" #include "graphics/managed_surface.h" +#include "graphics/palette.h" #include "wage/wage.h" #include "wage/design.h" @@ -63,14 +65,20 @@ namespace Wage { -enum { - kPatternCheckers = 1 +static const byte palette[] = { + 0, 0, 0, // Black + 0x80, 0x80, 0x80, // Gray + 0xff, 0xff, 0xff, // White + 0x00, 0xff, 0x00, // Green + 0x00, 0xcf, 0x00 // Green2 }; -static byte fillPatterns[][8] = { { 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55 } // kPatternCheckers +static byte fillPatterns[][8] = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, // kPatternSolid + { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 }, // kPatternStripes + { 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55 }, // kPatternCheckers + { 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa } // kPatternCheckers2 }; - MacWindowManager::MacWindowManager() { _screen = 0; _lastId = 0; @@ -86,6 +94,10 @@ MacWindowManager::MacWindowManager() { _patterns.push_back(fillPatterns[i]); loadFonts(); + + g_system->getPaletteManager()->setPalette(palette, 0, ARRAYSIZE(palette) / 3); + + CursorMan.replaceCursorPalette(palette, 0, ARRAYSIZE(palette) / 3); } MacWindowManager::~MacWindowManager() { |