diff options
author | alberth <alberth@openttd.org> | 2010-07-02 13:53:05 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-07-02 13:53:05 +0000 |
commit | 22b9bc515730e40ad834a5295d9421afeaf8802e (patch) | |
tree | 2c953357d0f0b51c676cb6f63bf8477e3a997c80 /src/company_gui.cpp | |
parent | 3d329beb1b9a882fbc6530817a169ab6588e646f (diff) | |
download | openttd-22b9bc515730e40ad834a5295d9421afeaf8802e.tar.xz |
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index c1ab78811..a8a024bd6 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -149,7 +149,7 @@ static void DrawCategories(const Rect &r) { int y = r.top; - DrawString(r.left, r.right, y, STR_FINANCES_EXPENDITURE_INCOME_TITLE, TC_FROMSTRING, SA_CENTER, true); + DrawString(r.left, r.right, y, STR_FINANCES_EXPENDITURE_INCOME_TITLE, TC_FROMSTRING, SA_HOR_CENTER, true); y += FONT_HEIGHT_NORMAL + EXP_LINESPACE; int type = _settings_client.gui.expenses_layout; @@ -1119,7 +1119,7 @@ class SelectCompanyManagerFaceWindow : public Window /* Draw the value/bool in white (0xC). If the button clicked adds 1px to x and y text coordinates (IsWindowWidgetLowered()). */ DrawString(nwi_widget->pos_x + nwi_widget->IsLowered(), nwi_widget->pos_x + nwi_widget->current_x - 1 - nwi_widget->IsLowered(), - nwi_widget->pos_y + 1 + nwi_widget->IsLowered(), str, TC_WHITE, SA_CENTER); + nwi_widget->pos_y + 1 + nwi_widget->IsLowered(), str, TC_WHITE, SA_HOR_CENTER); } } |