mirror of
https://github.com/MiSTer-devel/Main_MiSTer.git
synced 2026-04-12 03:04:02 +00:00
Fix expanded view in Menu core, don't scroll in expanded view if less than 3 lines.
This commit is contained in:
9
menu.cpp
9
menu.cpp
@@ -5279,6 +5279,10 @@ void ScrollLongName(void)
|
||||
{
|
||||
max_len = 20; // __.__.__ remove that from the end
|
||||
}
|
||||
else if (cfg.browse_expand && len < 55)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ScrollText(flist_iSelectedEntry()-flist_iFirstEntry(), flist_SelectedItem()->altname, 0, len, max_len, 1);
|
||||
@@ -5295,8 +5299,9 @@ void PrintDirectory(int expand)
|
||||
if (expand)
|
||||
{
|
||||
int k = flist_iFirstEntry() + OsdGetSize() - 1;
|
||||
if (flist_nDirEntries() && k == flist_iSelectedEntry() && k <= flist_nDirEntries() &&
|
||||
strlen(flist_DirItem(k)->altname) > 28 && !flist_DirItem(k)->datecode[0] && flist_DirItem(k)->de.d_type != DT_DIR)
|
||||
if (flist_nDirEntries() && k == flist_iSelectedEntry() && k <= flist_nDirEntries()
|
||||
&& strlen(flist_DirItem(k)->altname) > 28 && !(!cfg.rbf_hide_datecode && flist_DirItem(k)->datecode[0])
|
||||
&& flist_DirItem(k)->de.d_type != DT_DIR)
|
||||
{
|
||||
//make room for last expanded line
|
||||
flist_iFirstEntryInc();
|
||||
|
||||
Reference in New Issue
Block a user