From 73e90981f49e6becf883eba4054b82e8b5f3d24c Mon Sep 17 00:00:00 2001 From: Sorgelig Date: Thu, 30 Jun 2022 22:27:43 +0800 Subject: [PATCH] menu: fix name scroll overlap with help scroll. --- menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/menu.cpp b/menu.cpp index c51a31d..f5c3474 100644 --- a/menu.cpp +++ b/menu.cpp @@ -264,8 +264,8 @@ static const uint32_t helptext_timeouts[] = 10000, 10000, 10000, - 2000, - 2000 + 10000, + 10000 }; static const char *info_top = "\x80\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x81\x82"; @@ -4724,7 +4724,7 @@ void HandleUI(void) if (flist_nDirEntries()) { - ScrollLongName(); // scrolls file name if longer than display line + if (!helpstate || ((flist_iSelectedEntry() - flist_iFirstEntry() + 1) < OsdGetSize())) ScrollLongName(); // scrolls file name if longer than display line if (c == KEY_HOME || c == KEY_TAB) {