1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 18:09:09 +00:00

(svn r15808) -Codechange: use the new DrawString API in a number of GUIs

This commit is contained in:
rubidium
2009-03-22 12:01:21 +00:00
parent dfe5dad5f6
commit 57174a9301
11 changed files with 51 additions and 52 deletions

View File

@@ -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;
}