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/statusbar_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/statusbar_gui.cpp')
-rw-r--r-- | src/statusbar_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statusbar_gui.cpp b/src/statusbar_gui.cpp index 286fc31ce..4849c7050 100644 --- a/src/statusbar_gui.cpp +++ b/src/statusbar_gui.cpp @@ -97,12 +97,12 @@ struct StatusBarWindow : Window { this->DrawWidgets(); SetDParam(0, _date); - DrawStringCentered(70, 1, (_pause_game || _settings_client.gui.status_long_date) ? STR_00AF : STR_00AE, TC_FROMSTRING); + DrawString(this->widget[SBW_MIDDLE].left + 1, this->widget[SBW_MIDDLE].right - 1, 1, (_pause_game || _settings_client.gui.status_long_date) ? STR_00AF : STR_00AE, TC_FROMSTRING, SA_CENTER); if (c != NULL) { /* Draw company money */ SetDParam(0, c->money); - DrawStringCentered(this->widget[SBW_RIGHT].left + 70, 1, STR_0004, TC_FROMSTRING); + DrawString(this->widget[SBW_MIDDLE].left + 1, this->widget[SBW_MIDDLE].right - 1, 1, STR_0004, TC_FROMSTRING, SA_CENTER); } /* Draw status bar */ |