From 56e6282f2f56d741634e30bba86fcfbd941bc285 Mon Sep 17 00:00:00 2001 From: belugas Date: Sun, 4 Nov 2007 00:08:57 +0000 Subject: (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call. Patch heavily based on BiBB's work (FS#1383) --- src/smallmap_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/smallmap_gui.cpp') diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index cfc7ce8eb..9e6d0b64b 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -681,7 +681,7 @@ skip_column: y < dpi->top + dpi->height) { /* And draw it. */ SetDParam(0, t->index); - DrawString(x, y, STR_2056, 12); + DrawString(x, y, STR_2056, TC_WHITE); } } } @@ -752,9 +752,9 @@ static void SmallMapWindowProc(Window *w, WindowEvent *e) /* Industry name must be formated, since it's not in tiny font in the specs. * So, draw with a parameter and use the STR_7065 string, which is tiny, black */ SetDParam(0, tbl->legend); - DrawString(x + 11, y, STR_7065, 0); + DrawString(x + 11, y, STR_7065, TC_FROMSTRING); } else { - DrawString(x + 11, y, tbl->legend, 0); + DrawString(x + 11, y, tbl->legend, TC_FROMSTRING); } tbl += 1; -- cgit v1.2.3-54-g00ecf