Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console.lua: improved 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, though I can't reproduce it. To fix this place each selectable item in its own ASS event positioned like determine_hovered_item() expects.
- Loading branch information