From 75a3621d8e54e7210f1ce208f57135e7cafa2bf6 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 30 Dec 2019 21:30:45 +0800 Subject: [PATCH] osd: adjust rbf long name scrolling. --- menu.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 775dce6..91dd97b 100644 --- a/menu.cpp +++ b/menu.cpp @@ -4879,7 +4879,7 @@ void ScrollLongName(void) { len -= 9; } - max_len = 21; // __.__.__ remove that from the end + max_len = 20; // __.__.__ remove that from the end } //printf("ScrollLongName: len %d max_len %d [%s]\n",len,max_len,flist_SelectedItem()->altname); @@ -5013,6 +5013,12 @@ void PrintDirectory(void) { strcpy(&s[19], " --.--.--"); } + + if (len >= 19) + { + s[19] = 22; + s[28] = ' '; + } } if (!i && k) leftchar = 17;