summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-22 14:39:20 +0000
committerrubidium <rubidium@openttd.org>2009-03-22 14:39:20 +0000
commit9038733f1aa4f3203b229ac6350833f5af5b016a (patch)
tree297239fff1bd8ddcea1c5fc7722ebca4d3e9f3e0 /src/settings_gui.cpp
parent22d4270ea8664975384198353c40f4fc859dd5f1 (diff)
downloadopenttd-9038733f1aa4f3203b229ac6350833f5af5b016a.tar.xz
(svn r15812) -Codechange: use the new DrawString API in another set of GUIs
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 6d4f1e4fb..6a50f6634 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -179,7 +179,7 @@ struct GameOptionsWindow : Window {
SetDParamStr(9, GetGraphicsSetName(GetIndexOfCurrentGraphicsSet()));
this->DrawWidgets();
- DrawString(20, 175, STR_OPTIONS_FULLSCREEN, TC_FROMSTRING); // fullscreen
+ DrawString(20, this->width / 2, 175, STR_OPTIONS_FULLSCREEN, TC_FROMSTRING); // fullscreen
}
virtual void OnClick(Point pt, int widget)
@@ -475,7 +475,7 @@ public:
value += sdb->str;
SetDParam(0, value);
- DrawString(30, y, str, TC_FROMSTRING);
+ DrawString(30, this->width, y, str, TC_FROMSTRING);
y += GAMEDIFF_WND_ROWSIZE + 2; // space items apart a bit
str++;