diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-25 22:24:11 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-08-28 21:14:26 +0200 |
commit | 2a969a833f98b3486be8007972887c27c08b6f61 (patch) | |
tree | a4ea107bb84d952abd889be2b10534a1d3dd08f4 /player/lua | |
parent | ce64b5687b69ed5d5bbdc9576700493fdab6e144 (diff) | |
download | mpv-2a969a833f98b3486be8007972887c27c08b6f61.tar.bz2 mpv-2a969a833f98b3486be8007972887c27c08b6f61.tar.xz |
stats.lua: add hints about scrolling
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/stats.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 0accf84f13..a1d881eefb 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -330,10 +330,11 @@ local function append_perfdata(s, dedicated_page) -- ensure that the fixed title is one element and every scrollable line is -- also one single element. - s[#s+1] = format("%s%s%s%s{\\fs%s}%s{\\fs%s}", + s[#s+1] = format("%s%s%s%s{\\fs%s}%s%s{\\fs%s}", dedicated_page and "" or o.nl, dedicated_page and "" or o.indent, b("Frame Timings:"), o.prefix_sep, o.font_size * 0.66, - "(last/average/peak μs)", o.font_size) + "(last/average/peak μs)", + dedicated_page and " (hint: scroll with ↑↓)" or "", o.font_size) for _,frame in ipairs(sorted_keys(vo_p)) do -- ensure fixed display order local data = vo_p[frame] @@ -862,7 +863,9 @@ local function keybinding_info(after_scroll) local page = pages[o.key_page_4] eval_ass_formatting() add_header(header) - append(header, "", {prefix=page.desc .. ":", nl="", indent=""}) + append(header, "", {prefix=format("%s: {\\fs%s}%s{\\fs%s}", page.desc, + o.font_size * 0.66, "(hint: scroll with ↑↓)", o.font_size), nl="", + indent=""}) if not kbinfo_lines or not after_scroll then kbinfo_lines = get_kbinfo_lines() |