summaryrefslogtreecommitdiff
path: root/src/subsidy_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
committerbelugas <belugas@openttd.org>2007-11-04 00:08:57 +0000
commit56e6282f2f56d741634e30bba86fcfbd941bc285 (patch)
tree14a742a306f14c4d3afd56b725a7c6ffe7fb0e73 /src/subsidy_gui.cpp
parent9e69fc8114012c85cc1194a2ae73fb716dc95dde (diff)
downloadopenttd-56e6282f2f56d741634e30bba86fcfbd941bc285.tar.xz
(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)
Diffstat (limited to 'src/subsidy_gui.cpp')
-rw-r--r--src/subsidy_gui.cpp16
1 files changed, 8 insertions, 8 deletions
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)