summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-29 19:26:13 +0000
committertron <tron@openttd.org>2006-08-29 19:26:13 +0000
commitb83a3f8726e3980820fa2c4b508f70a56826228b (patch)
treebfebe9391624be5031618ddb87d904e064fe4034 /viewport.c
parent21db9de388330156680de6fd745d770563de0270 (diff)
downloadopenttd-b83a3f8726e3980820fa2c4b508f70a56826228b.tar.xz
(svn r6222) Remove struct ColorList, because the names of its attributes are plain confusing
All the struct holds is a simple colour gradient, so using a simple array with 8 entries is more clear Also add the names of colour the gradients as enum
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewport.c b/viewport.c
index 4af32ead9..7200c2156 100644
--- a/viewport.c
+++ b/viewport.c
@@ -1166,7 +1166,7 @@ static void ViewportDrawStrings(DrawPixelInfo *dpi, const StringSpriteToDraw *ss
* otherwise colors from _string_colormap are assumed. */
DrawString(
ss->x >> zoom, (ss->y >> zoom) - (ss->width & 0x8000 ? 2 : 0),
- ss->string, (_color_list[ss->color].window_color_bgb | IS_PALETTE_COLOR)
+ ss->string, _colour_gradient[ss->color][6] | IS_PALETTE_COLOR
);
} else {
DrawString(