diff options
author | Darkvater <darkvater@openttd.org> | 2005-07-17 17:15:33 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-07-17 17:15:33 +0000 |
commit | f8b7b107d868d2e05a8c36df191917d7e9b1ca80 (patch) | |
tree | b618eaf70bf02a242a3d2bb8f7a4a7add02e2f29 /misc_gui.c | |
parent | 99c6944497747b461c05f9c8026c7d34a7a17de5 (diff) | |
download | openttd-f8b7b107d868d2e05a8c36df191917d7e9b1ca80.tar.xz |
(svn r2613) - Truncate savegames, and vehicle-texts in their window.
- Hardcoded width 5 for saves-path...oops :O
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |