diff options
author | dominik <dominik@openttd.org> | 2004-11-26 14:00:57 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-11-26 14:00:57 +0000 |
commit | d801ca16a30efaec8e3bbcd47774c9eb9b691f1b (patch) | |
tree | 9e8ee2b5fd754b740dd680685159404168824045 /gfx.c | |
parent | a2951667546a0ab402c9cb23b2a8a5553b17a6ca (diff) | |
download | openttd-d801ca16a30efaec8e3bbcd47774c9eb9b691f1b.tar.xz |
(svn r819) Code cleanup: colors for langfile strings are now taken from a color table instead of a sprite
Diffstat (limited to 'gfx.c')
-rw-r--r-- | gfx.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -475,7 +475,7 @@ void DrawFrameRect(int left, int top, int right, int bottom, int ctab, int flags int DoDrawString(const byte *string, int x, int y, byte color) { DrawPixelInfo *dpi = _cur_dpi; int base = _stringwidth_base; - byte c, *b; + byte c; int xo = x, yo = y; if (color != 0xFE) { @@ -487,9 +487,8 @@ int DoDrawString(const byte *string, int x, int y, byte color) { if (color != 0xFF) { switch_color:; - b = GetSpritePtr(674); - _string_colorremap[1] = b[color*2+8]; - _string_colorremap[2] = b[color*2+9]; + _string_colorremap[1] = StringColormap[color][0]; + _string_colorremap[2] = StringColormap[color][1]; _color_remap_ptr = _string_colorremap; } } |