summaryrefslogtreecommitdiff
path: root/gfx.c
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 /gfx.c
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 'gfx.c')
-rw-r--r--gfx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx.c b/gfx.c
index 9b24cbf6a..63c523643 100644
--- a/gfx.c
+++ b/gfx.c
@@ -487,8 +487,8 @@ int DoDrawString(const byte *string, int x, int y, byte color) {
if (color != 0xFF) {
switch_color:;
- _string_colorremap[1] = StringColormap[color][0];
- _string_colorremap[2] = StringColormap[color][1];
+ _string_colorremap[1] = _string_colormap[color].text;
+ _string_colorremap[2] = _string_colormap[color].shadow;
_color_remap_ptr = _string_colorremap;
}
}