aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorEugene Sandulenko2016-01-18 22:09:48 +0100
committerEugene Sandulenko2016-02-14 17:12:48 +0100
commitd9c3cd18d65c3c3fdaaa2001641a1e02bd7d5373 (patch)
tree1b271d97563f5d828c8cb48b3c17a5ce1782c880 /engines/wage
parentee8999241e115b4f38c8481ed8257176ced0dbc2 (diff)
downloadscummvm-rg350-d9c3cd18d65c3c3fdaaa2001641a1e02bd7d5373.tar.gz
scummvm-rg350-d9c3cd18d65c3c3fdaaa2001641a1e02bd7d5373.tar.bz2
scummvm-rg350-d9c3cd18d65c3c3fdaaa2001641a1e02bd7d5373.zip
WAGE: Simplified default pattern setting
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/gui.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp
index a5e9018cf4..a776dba905 100644
--- a/engines/wage/gui.cpp
+++ b/engines/wage/gui.cpp
@@ -67,10 +67,11 @@ static const byte palette[] = {
0x00, 0xff, 0x00 // Green
};
-static byte fillPattern[8] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
-static byte fillPatternStripes[8] = { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 };
-static byte fillPatternCheckers[8] = { 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55 };
-static byte fillPatternCheckers2[8] = { 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa, 0x55, 0xaa };
+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
+};
static const byte macCursorArrow[] = {
2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
@@ -161,10 +162,8 @@ Gui::Gui(WageEngine *engine) {
_cursorIsArrow = true;
CursorMan.showMouse(true);
- _patterns.push_back(fillPattern);
- _patterns.push_back(fillPatternStripes);
- _patterns.push_back(fillPatternCheckers);
- _patterns.push_back(fillPatternCheckers2);
+ for (int i = 0; i < ARRAYSIZE(fillPatterns); i++)
+ _patterns.push_back(fillPatterns[i]);
loadFonts();