misc_gui.c
changeset 2103 a2b3106d33d5
parent 2100 217ea6fdfd18
child 2128 c969a15a2100
equal deleted inserted replaced
2102:f70ff7bbc69c 2103:a2b3106d33d5
  1174 		_fios_path_changed = false;
  1174 		_fios_path_changed = false;
  1175 	}
  1175 	}
  1176 
  1176 
  1177 	if (str != STR_4006_UNABLE_TO_READ_DRIVE) SetDParam(0, tot);
  1177 	if (str != STR_4006_UNABLE_TO_READ_DRIVE) SetDParam(0, tot);
  1178 	DrawString(2, 37, str, 0);
  1178 	DrawString(2, 37, str, 0);
  1179 	DoDrawStringTruncated(path, 2, 27, 16, 5);
  1179 	DoDrawStringTruncated(path, 2, 27, 16, maxw);
  1180 }
  1180 }
  1181 
  1181 
  1182 static void MakeSortedSaveGameList(void)
  1182 static void MakeSortedSaveGameList(void)
  1183 {
  1183 {
  1184 	/*	Directories are always above the files (FIOS_TYPE_DIR)
  1184 	/*	Directories are always above the files (FIOS_TYPE_DIR)
  1243 
  1243 
  1244 		y = w->widget[6].top + 1;
  1244 		y = w->widget[6].top + 1;
  1245 		pos = w->vscroll.pos;
  1245 		pos = w->vscroll.pos;
  1246 		while (pos < _fios_num) {
  1246 		while (pos < _fios_num) {
  1247 			item = _fios_list + pos;
  1247 			item = _fios_list + pos;
  1248 			DoDrawString(item->title, 4, y, _fios_colors[item->type]);
  1248 			DoDrawStringTruncated(item->title, 4, y, _fios_colors[item->type], w->width - 18);
  1249 			pos++;
  1249 			pos++;
  1250 			y+=10;
  1250 			y+=10;
  1251 			if (y >= w->vscroll.cap*10+w->widget[6].top+1)
  1251 			if (y >= w->vscroll.cap*10+w->widget[6].top+1)
  1252 				break;
  1252 				break;
  1253 		}
  1253 		}