From f8b7b107d868d2e05a8c36df191917d7e9b1ca80 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 17 Jul 2005 17:15:33 +0000 Subject: (svn r2613) - Truncate savegames, and vehicle-texts in their window. - Hardcoded width 5 for saves-path...oops :O --- misc_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc_gui.c') diff --git a/misc_gui.c b/misc_gui.c index eb15a7069..f7068dd3f 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1176,7 +1176,7 @@ static void DrawFiosTexts(uint maxw) if (str != STR_4006_UNABLE_TO_READ_DRIVE) SetDParam(0, tot); DrawString(2, 37, str, 0); - DoDrawStringTruncated(path, 2, 27, 16, 5); + DoDrawStringTruncated(path, 2, 27, 16, maxw); } static void MakeSortedSaveGameList(void) @@ -1245,7 +1245,7 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e) pos = w->vscroll.pos; while (pos < _fios_num) { item = _fios_list + pos; - DoDrawString(item->title, 4, y, _fios_colors[item->type]); + DoDrawStringTruncated(item->title, 4, y, _fios_colors[item->type], w->width - 18); pos++; y+=10; if (y >= w->vscroll.cap*10+w->widget[6].top+1) -- cgit v1.2.3-70-g09d2