mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-19 14:11:15 +00:00
Truncate long names in file picker dialog
This commit is contained in:
parent
3b951b8578
commit
982d4cc0f9
@ -1390,7 +1390,7 @@ static void fileDialogRenderFileList(unsigned char* buffer, char** fileList, int
|
||||
|
||||
for (int index = 0; index < fileListLength; index++) {
|
||||
int color = index == selectedIndex ? _colorTable[32747] : _colorTable[992];
|
||||
fontDrawText(buffer + pitch * y + FILE_DIALOG_FILE_LIST_X, fileList[pageOffset + index], pitch, pitch, color);
|
||||
fontDrawText(buffer + pitch * y + FILE_DIALOG_FILE_LIST_X, fileList[pageOffset + index], FILE_DIALOG_FILE_LIST_WIDTH, pitch, color);
|
||||
y += lineHeight;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user