display 2 lines for long files.

This commit is contained in:
sorgelig
2020-05-11 15:40:18 +08:00
parent 19b3e04b05
commit e118e4f3cb
7 changed files with 56 additions and 11 deletions

View File

@@ -1571,7 +1571,7 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
}
else if (mode == SCANF_NEXT_PAGE)
{
if (iSelectedEntry < iFirstEntry + OsdGetSize() - 1)
if (iSelectedEntry < iFirstEntry + OsdGetSize() - 2)
{
iSelectedEntry = iFirstEntry + OsdGetSize() - 1;
if (iSelectedEntry >= flist_nDirEntries()) iSelectedEntry = flist_nDirEntries() - 1;
@@ -1672,6 +1672,11 @@ int flist_iFirstEntry()
return iFirstEntry;
}
void flist_iFirstEntryInc()
{
iFirstEntry++;
}
int flist_iSelectedEntry()
{
return iSelectedEntry;