From 45f189fdcaedd5f95dcbb3ce9a60f746603859e1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Mar 2009 20:12:12 +0000 Subject: (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. --- src/misc_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index df474d598..c6f2d0b47 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1409,7 +1409,7 @@ static void DrawFiosTexts(uint maxw) if (str != STR_4006_UNABLE_TO_READ_DRIVE) SetDParam(0, tot); DrawString(2, 37, str, TC_FROMSTRING); - DoDrawStringTruncated(path, 2, 27, TC_BLACK, maxw); + DrawString(2, 2 + maxw, 27, path, TC_BLACK); } static void MakeSortedSaveGameList() @@ -1570,7 +1570,7 @@ public: for (uint pos = this->vscroll.pos; pos < _fios_items.Length(); pos++) { const FiosItem *item = _fios_items.Get(pos); - DoDrawStringTruncated(item->title, 4, y, _fios_colours[item->type], this->width - 18); + DrawString(4, widg->right - 2, y, item->title, _fios_colours[item->type]); y += 10; if (y >= this->vscroll.cap * 10 + widg->top + 1) break; } -- cgit v1.2.3-70-g09d2