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/subsidy_gui.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/subsidy_gui.cpp') diff --git a/src/subsidy_gui.cpp b/src/subsidy_gui.cpp index 6af1e003e..9b9bb6f3e 100644 --- a/src/subsidy_gui.cpp +++ b/src/subsidy_gui.cpp @@ -94,7 +94,7 @@ static void DrawSubsidiesWindow(const Window *w) y = 15; x = 1; - DrawString(x, y, STR_2026_SUBSIDIES_ON_OFFER_FOR, 0); + DrawString(x, y, STR_2026_SUBSIDIES_ON_OFFER_FOR, TC_FROMSTRING); y += 10; num = 0; @@ -103,21 +103,21 @@ static void DrawSubsidiesWindow(const Window *w) int x2; SetupSubsidyDecodeParam(s, 1); - x2 = DrawString(x + 2, y, STR_2027_FROM_TO, 0); + x2 = DrawString(x + 2, y, STR_2027_FROM_TO, TC_FROMSTRING); SetDParam(0, _date - ymd.day + 384 - s->age * 32); - DrawString(x2, y, STR_2028_BY, 0); + DrawString(x2, y, STR_2028_BY, TC_FROMSTRING); y += 10; num++; } } if (num == 0) { - DrawString(x + 2, y, STR_202A_NONE, 0); + DrawString(x + 2, y, STR_202A_NONE, TC_FROMSTRING); y += 10; } - DrawString(x, y + 1, STR_202B_SERVICES_ALREADY_SUBSIDISED, 0); + DrawString(x, y + 1, STR_202B_SERVICES_ALREADY_SUBSIDISED, TC_FROMSTRING); y += 10; num = 0; @@ -130,16 +130,16 @@ static void DrawSubsidiesWindow(const Window *w) PlayerID player = GetStation(s->to)->owner; SetDParam(3, player); - xt = DrawString(x + 2, y, STR_202C_FROM_TO, 0); + xt = DrawString(x + 2, y, STR_202C_FROM_TO, TC_FROMSTRING); SetDParam(0, _date - ymd.day + 768 - s->age * 32); - DrawString(xt, y, STR_202D_UNTIL, 0); + DrawString(xt, y, STR_202D_UNTIL, TC_FROMSTRING); y += 10; num++; } } - if (num == 0) DrawString(x + 2, y, STR_202A_NONE, 0); + if (num == 0) DrawString(x + 2, y, STR_202A_NONE, TC_FROMSTRING); } static void SubsidiesListWndProc(Window *w, WindowEvent *e) -- cgit v1.2.3-54-g00ecf