Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console.lua: improve the hovered item calculation
Currently determine_hovered_item() assumes that each item is opts.font_size pixels tall, which usually works well. This breaks with fonts that get drawn taller than that, such as Japanese text, which makes the calculation inaccurate for the top items and clips the counter. A couple of users reported that it is inaccurate for them for the top items even with ASCII characters in track selectors, presumably because the circles are taken from a different font and make all lines taller. To fix this place each selectable item in its own ASS event positioned like determine_hovered_item() expects. Unfortunately this breaks --profile=box, so keep placing every item in one ASS event with it.
- Loading branch information