summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-26 14:52:56 +0000
committerrubidium <rubidium@openttd.org>2009-04-26 14:52:56 +0000
commit53887e07bb8a6f815f48daffc3ac106496b2e694 (patch)
tree46b1264b6cbd4a5187e9361bab01ae4418503f56 /src/settings_gui.cpp
parentc21062a728fa37bb319c38b627d56f38150328f1 (diff)
downloadopenttd-53887e07bb8a6f815f48daffc3ac106496b2e694.tar.xz
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index e3adb86b4..0a7da6f1d 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -567,7 +567,7 @@ public:
value += sdb->str;
SetDParam(0, value);
- DrawString(30, this->width, y, str, TC_FROMSTRING);
+ DrawString(30, this->width, y, str);
y += GAMEDIFF_WND_ROWSIZE + 2; // space items apart a bit
str++;
@@ -941,7 +941,7 @@ uint SettingEntry::Draw(GameSettings *settings_ptr, int base_x, int base_y, int
case SEF_SUBTREE_KIND:
if (cur_row >= first_row) {
DrawSprite((this->d.sub.folded ? SPR_CIRCLE_FOLDED : SPR_CIRCLE_UNFOLDED), PAL_NONE, x, y);
- DrawString(x + 12, max_x, y, this->d.sub.title, TC_FROMSTRING);
+ DrawString(x + 12, max_x, y, this->d.sub.title);
}
cur_row++;
if (!this->d.sub.folded) {
@@ -1008,7 +1008,7 @@ void SettingEntry::DrawSetting(GameSettings *settings_ptr, const SettingDesc *sd
SetDParam(1, value);
}
}
- DrawString(x + 25, max_x, y, (sdb->str) + disabled, TC_FROMSTRING);
+ DrawString(x + 25, max_x, y, (sdb->str) + disabled);
}