summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 20:12:12 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 20:12:12 +0000
commit45f189fdcaedd5f95dcbb3ce9a60f746603859e1 (patch)
tree963e15fde656667f8ede17763a536b8ec0282ff9 /src/settings_gui.cpp
parent9fcff01850c4c18543c60cf477926b793052f1fd (diff)
downloadopenttd-45f189fdcaedd5f95dcbb3ce9a60f746603859e1.tar.xz
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
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 b3ce74de2..69e9e35d7 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -849,7 +849,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);
- DrawStringTruncated(x + 12, y, this->d.sub.title, TC_FROMSTRING, max_x - x - 12);
+ DrawString(x + 12, max_x, y, this->d.sub.title, TC_FROMSTRING);
}
cur_row++;
if (!this->d.sub.folded) {
@@ -916,7 +916,7 @@ void SettingEntry::DrawSetting(GameSettings *settings_ptr, const SettingDesc *sd
SetDParam(1, value);
}
}
- DrawStringTruncated(x + 25, y, (sdb->str) + disabled, TC_FROMSTRING, max_x - x - 25);
+ DrawString(x + 25, max_x, y, (sdb->str) + disabled, TC_FROMSTRING);
}