diff options
author | Eugene Sandulenko | 2016-04-28 11:28:55 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-28 11:28:55 +0200 |
commit | 6998182b1fef719499ab8b19d415d1a24dd7d908 (patch) | |
tree | 8f0d5892bff4cd6d13b2eea103ffe1384d522c4c /engines/wage/gui.cpp | |
parent | 367946f83b5688490bb40c54bb884df4dac3c11e (diff) | |
download | scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.tar.gz scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.tar.bz2 scummvm-rg350-6998182b1fef719499ab8b19d415d1a24dd7d908.zip |
WAGE: Moved pattern and palette to WM
Diffstat (limited to 'engines/wage/gui.cpp')
-rw-r--r-- | engines/wage/gui.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index e3e7ccfcf7..9689788162 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -48,7 +48,6 @@ #include "common/timer.h" #include "common/system.h" #include "graphics/cursorman.h" -#include "graphics/palette.h" #include "graphics/primitives.h" #include "wage/wage.h" @@ -62,19 +61,6 @@ namespace Wage { -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] = { { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, // kPatternSolid - { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 }, // kPatternStripes - { 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa } // kPatternCheckers2 -}; - static const byte macCursorArrow[] = { 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 0, 2, 3, 3, 3, 3, 3, 3, 3, 3, @@ -170,16 +156,10 @@ Gui::Gui(WageEngine *engine) { _inputTextLineNum = 0; - g_system->getPaletteManager()->setPalette(palette, 0, ARRAYSIZE(palette) / 3); - - CursorMan.replaceCursorPalette(palette, 0, 4); CursorMan.replaceCursor(macCursorArrow, 11, 16, 1, 1, 3); _cursorIsArrow = true; CursorMan.showMouse(true); - for (int i = 0; i < ARRAYSIZE(fillPatterns); i++) - _patterns.push_back(fillPatterns[i]); - g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "wageCursor"); _menu = _wm.addMenu(this); |