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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user