Truncate long names in file picker dialog

This commit is contained in:
Alexander Batalov 2022-12-23 10:30:31 +03:00
parent 3b951b8578
commit 982d4cc0f9
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ static void fileDialogRenderFileList(unsigned char* buffer, char** fileList, int
for (int index = 0; index < fileListLength; index++) { for (int index = 0; index < fileListLength; index++) {
int color = index == selectedIndex ? _colorTable[32747] : _colorTable[992]; 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; y += lineHeight;
} }
} }