(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)
This commit is contained in:
belugas
2007-11-04 00:08:57 +00:00
parent 9e69fc8114
commit 56e6282f2f
37 changed files with 408 additions and 383 deletions

View File

@@ -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;