mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Fix file name being able to wrap
This commit is contained in:
parent
c0e347f2b4
commit
4fd905f894
@ -160,7 +160,7 @@ void showDirectoryContents (const std::vector<DirEntry>& dirContents, int fileOf
|
||||
pal = Palette::gray;
|
||||
}
|
||||
|
||||
font->print(0, i + 1, true, entry->name, Alignment::left, pal);
|
||||
font->print(0, i + 1, true, entry->name.substr(0, SCREEN_COLS), Alignment::left, pal);
|
||||
if (entry->name == "..") {
|
||||
font->print(-1, i + 1, true, "(..)", Alignment::right, pal);
|
||||
} else if (entry->isDirectory) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user