diff options
author | rubidium <rubidium@openttd.org> | 2009-03-22 09:34:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-22 09:34:06 +0000 |
commit | e74dc1e1d6dc57b2d6b79ef921888c0204855139 (patch) | |
tree | 1266c6a78a4ae2bcbfd356af1e87bfdbb85fbe80 /src/company_gui.cpp | |
parent | 70d0f8857e5b984d5f74dda353413dc2cd8221ba (diff) | |
download | openttd-e74dc1e1d6dc57b2d6b79ef921888c0204855139.tar.xz |
(svn r15803) -Codechange: use the new text drawing API for multicenter
-Fix (r15800): off-by-one w.r.t. offsets
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 7e8ce5ffc..632b8742f 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -1312,7 +1312,7 @@ struct CompanyWindow : Window /* "xxx (Manager)" */ SetDParam(0, c->index); - DrawStringMultiCenter(48, 141, STR_7037_PRESIDENT, MAX_LENGTH_PRESIDENT_NAME_PIXELS); + DrawStringMultiLine(48 - MAX_LENGTH_PRESIDENT_NAME_PIXELS / 2, 48 + MAX_LENGTH_PRESIDENT_NAME_PIXELS / 2, 135, 157, STR_7037_PRESIDENT, SA_CENTER); /* "Inaugurated:" */ SetDParam(0, c->inaugurated_year); @@ -1489,7 +1489,7 @@ struct BuyCompanyWindow : Window { SetDParam(0, c->index); SetDParam(1, c->bankrupt_value); - DrawStringMultiCenter(214, 65, STR_705B_WE_ARE_LOOKING_FOR_A_TRANSPORT, 238); + DrawStringMultiLine(95, 333, 26, 116, STR_705B_WE_ARE_LOOKING_FOR_A_TRANSPORT, SA_CENTER); } virtual void OnClick(Point pt, int widget) |