summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-26 16:55:35 +0000
committertron <tron@openttd.org>2004-11-26 16:55:35 +0000
commit7b8bf96c2bf0e35d760325e3e09bf0d6703d7cc8 (patch)
treebffdfb24250216b3503acff04ac1d3e189569440 /table
parentd801ca16a30efaec8e3bbcd47774c9eb9b691f1b (diff)
downloadopenttd-7b8bf96c2bf0e35d760325e3e09bf0d6703d7cc8.tar.xz
(svn r822) Use a struct instead of pairs of bytes for the string colormap.
While here give the string colormap a more canonical name.
Diffstat (limited to 'table')
-rw-r--r--table/palettes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/table/palettes.h b/table/palettes.h
index 184a2a495..efee5f401 100644
--- a/table/palettes.h
+++ b/table/palettes.h
@@ -95,9 +95,12 @@ static const ExtraPaletteValues _extra_palette_values = {
};
// Color table for colors in lang files (e.g. {BLACK})
-// 1st color: text
-// 2nd color: shadow
-static const byte StringColormap[17][2] = {
+typedef struct StringColor {
+ byte text;
+ byte shadow;
+} StringColor;
+
+static const StringColor _string_colormap[] = {
{ 150, 215 }, // BLUE
{ 12, 215 }, // SILVER
{ 189, 215 }, // GOLD