misc_gui.c
changeset 2103 9266bb2ac29d
parent 2100 868d62687c9a
child 2128 f5baf0b86451
--- a/misc_gui.c	Sun Jul 17 16:22:27 2005 +0000
+++ b/misc_gui.c	Sun Jul 17 17:15:33 2005 +0000
@@ -1176,7 +1176,7 @@
 
 	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 @@
 		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)