summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-17 10:08:17 +0000
committermaedhros <maedhros@openttd.org>2007-04-17 10:08:17 +0000
commit2a32b3b8db3c9248836625bc8517b8076ccededa (patch)
treebfc4c041e935ed9f221e6a17a4fc5512aa875191 /src/table
parent792339554f55115f9f4beb0329c1c75e99a06198 (diff)
downloadopenttd-2a32b3b8db3c9248836625bc8517b8076ccededa.tar.xz
(svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files.
Diffstat (limited to 'src/table')
-rw-r--r--src/table/palettes.h57
1 files changed, 39 insertions, 18 deletions
diff --git a/src/table/palettes.h b/src/table/palettes.h
index dd69085c7..d1bff7cb6 100644
--- a/src/table/palettes.h
+++ b/src/table/palettes.h
@@ -178,22 +178,43 @@ struct StringColor {
byte shadow;
};
-static const StringColor _string_colormap[] = {
- { 150, 215 }, // BLUE
- { 12, 215 }, // SILVER
- { 189, 215 }, // GOLD
- { 184, 215 }, // RED
- { 174, 215 }, // PURPLE
- { 30, 215 }, // LTBROWN
- { 195, 215 }, // ORANGE
- { 209, 215 }, // GREEN
- { 68, 215 }, // YELLOW
- { 95, 215 }, // DKGREEN
- { 79, 215 }, // CREAM
- { 116, 215 }, // BROWN
- { 15, 215 }, // WHITE
- { 152, 215 }, // LTBLUE
- { 32, 215 }, // GRAY
- { 133, 215 }, // DKBLUE
- { 215, 0 }, // BLACK
+static const StringColor _string_colormap[][17] = {
+ { /* Windows palette. */
+ { 150, 215 }, // BLUE
+ { 12, 215 }, // SILVER
+ { 189, 215 }, // GOLD
+ { 184, 215 }, // RED
+ { 174, 215 }, // PURPLE
+ { 30, 215 }, // LTBROWN
+ { 195, 215 }, // ORANGE
+ { 209, 215 }, // GREEN
+ { 68, 215 }, // YELLOW
+ { 95, 215 }, // DKGREEN
+ { 79, 215 }, // CREAM
+ { 116, 215 }, // BROWN
+ { 15, 215 }, // WHITE
+ { 152, 215 }, // LTBLUE
+ { 32, 215 }, // GRAY
+ { 133, 215 }, // DKBLUE
+ { 215, 0 }, // BLACK
+ },
+ { /* DOS palette. */
+ { 150, 1 }, // BLUE
+ { 12, 1 }, // SILVER
+ { 189, 1 }, // GOLD
+ { 184, 1 }, // RED
+ { 174, 1 }, // PURPLE
+ { 30, 1 }, // LTBROWN
+ { 195, 1 }, // ORANGE
+ { 209, 1 }, // GREEN
+ { 68, 1 }, // YELLOW
+ { 95, 1 }, // DKGREEN
+ { 79, 1 }, // CREAM
+ { 116, 1 }, // BROWN
+ { 15, 1 }, // WHITE
+ { 152, 1 }, // LTBLUE
+ { 6, 1 }, // GRAY
+ { 133, 1 }, // DKBLUE
+ { 1, 0 }, // BLACK
+ }
};