From 53887e07bb8a6f815f48daffc3ac106496b2e694 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Apr 2009 14:52:56 +0000 Subject: (svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString. --- src/graph_gui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/graph_gui.cpp') diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 157363b89..cc0d80033 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -788,7 +788,7 @@ struct PaymentRatesGraphWindow : BaseGraphWindow { GfxFillRect(x + clk_dif, y + clk_dif, x + 8 + clk_dif, y + 5 + clk_dif, 0); GfxFillRect(x + 1 + clk_dif, y + 1 + clk_dif, x + 7 + clk_dif, y + 4 + clk_dif, cs->legend_colour); SetDParam(0, cs->name); - DrawString(x + 14 + clk_dif, this->width, y + clk_dif, STR_GRAPH_CARGO_PAYMENT_CARGO, TC_FROMSTRING); + DrawString(x + 14 + clk_dif, this->width, y + clk_dif, STR_GRAPH_CARGO_PAYMENT_CARGO); y += 8; } @@ -803,8 +803,8 @@ struct PaymentRatesGraphWindow : BaseGraphWindow { this->DrawGraph(); - DrawString(2 + 46, this->width, 24 + this->gd_height + 7, STR_GRAPH_CARGO_PAYMENT_RATES_X_LABEL, TC_FROMSTRING); - DrawString(2 + 84, this->width, 24 - 9, STR_GRAPH_CARGO_PAYMENT_RATES_TITLE, TC_FROMSTRING); + DrawString(2 + 46, this->width, 24 + this->gd_height + 7, STR_GRAPH_CARGO_PAYMENT_RATES_X_LABEL); + DrawString(2 + 84, this->width, 24 - 9, STR_GRAPH_CARGO_PAYMENT_RATES_TITLE); } virtual void OnClick(Point pt, int widget) @@ -931,7 +931,7 @@ public: SetDParam(2, c->index); SetDParam(3, GetPerformanceTitleFromValue(c->old_economy[1].performance_history)); - DrawString(2, this->width, 15 + i * 10, i == 0 ? STR_COMPANY_LEAGUE_FIRST : STR_COMPANY_LEAGUE_OTHER, TC_FROMSTRING); + DrawString(2, this->width, 15 + i * 10, i == 0 ? STR_COMPANY_LEAGUE_FIRST : STR_COMPANY_LEAGUE_OTHER); DrawCompanyIcon(c->index, 27, 16 + i * 10); } } @@ -1119,7 +1119,7 @@ struct PerformanceRatingDetailWindow : Window { total_score += score; } - DrawString(7, 107, y, STR_PERFORMANCE_DETAIL_VEHICLES + i, TC_FROMSTRING); + DrawString(7, 107, y, STR_PERFORMANCE_DETAIL_VEHICLES + i); /* Draw the score */ SetDParam(0, score); @@ -1158,10 +1158,10 @@ struct PerformanceRatingDetailWindow : Window { case SCORE_MAX_INCOME: case SCORE_MONEY: case SCORE_LOAN: - DrawString(167, this->width, y, STR_PERFORMANCE_DETAIL_AMOUNT_CURRENCY, TC_FROMSTRING); + DrawString(167, this->width, y, STR_PERFORMANCE_DETAIL_AMOUNT_CURRENCY); break; default: - DrawString(167, this->width, y, STR_PERFORMANCE_DETAIL_AMOUNT_INT, TC_FROMSTRING); + DrawString(167, this->width, y, STR_PERFORMANCE_DETAIL_AMOUNT_INT); } } } -- cgit v1.2.3-54-g00ecf