diff options
author | rubidium <rubidium@openttd.org> | 2009-03-22 12:01:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-22 12:01:21 +0000 |
commit | 57174a9301aba626f8f25e86e93802636c4e8f45 (patch) | |
tree | 696c8445b29787af5e6368f4923172fb4f13e733 /src/cheat_gui.cpp | |
parent | dfe5dad5f68250ec67a3cb5e69bc7f9f58f9a58c (diff) | |
download | openttd-57174a9301aba626f8f25e86e93802636c4e8f45.tar.xz |
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index dd2424c04..f05c60308 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -144,7 +144,7 @@ struct CheatWindow : Window { virtual void OnPaint() { this->DrawWidgets(); - DrawStringMultiLine(20, this->width - 40, 15, 45, STR_CHEATS_WARNING, SA_CENTER); + DrawStringMultiLine(20, this->width - 20, 15, 45, STR_CHEATS_WARNING, SA_CENTER); for (int i = 0, x = 0, y = 45; i != lengthof(_cheats_ui); i++) { const CheatEntry *ce = &_cheats_ui[i]; @@ -186,7 +186,7 @@ struct CheatWindow : Window { } break; } - DrawString(50, y + 1, ce->str, TC_FROMSTRING); + DrawString(50, this->width, y + 1, ce->str, TC_FROMSTRING); y += 12; } |