diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 22:00:00 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 22:00:00 +0000 |
commit | 900364109597f02413e2f7a59e9b4e6cc9fdf97f (patch) | |
tree | 308b7c3eda7e63a306620580ef4df5f4b99b893e /src/company_gui.cpp | |
parent | d452a0a0ecaad276c893b62ab8f008a5af85ba82 (diff) | |
download | openttd-900364109597f02413e2f7a59e9b4e6cc9fdf97f.tar.xz |
(svn r15790) -Codechange: remove the *Centered part of the old text drawing API.
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 1d7187be9..3703e2b1f 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -92,7 +92,7 @@ static void DrawCompanyEconomyStats(const Company *c, bool small) if (!small) { // normal sized economics window /* draw categories */ - DrawStringCenterUnderline(61, 15, STR_700F_EXPENDITURE_INCOME, TC_FROMSTRING); + DrawString(0, 122, 15, STR_700F_EXPENDITURE_INCOME, TC_FROMSTRING, SA_CENTER, true); y = 27; for (i = 0; i < _expenses_list_types[type].length; i++) { @@ -832,8 +832,8 @@ class SelectCompanyManagerFaceWindow : public Window } /* Draw the value/bool in white (0xC). If the button clicked adds 1px to x and y text coordinates (IsWindowWidgetLowered()). */ - DrawStringCentered(this->widget[widget_index].left + (this->widget[widget_index].right - this->widget[widget_index].left) / 2 + - this->IsWidgetLowered(widget_index), this->widget[widget_index].top + 1 + this->IsWidgetLowered(widget_index), str, TC_WHITE); + DrawString(this->widget[widget_index].left + this->IsWidgetLowered(widget_index), this->widget[widget_index].right - this->IsWidgetLowered(widget_index), + this->widget[widget_index].top + 1 + this->IsWidgetLowered(widget_index), str, TC_WHITE, SA_CENTER); } } |