e00d8dcb03 factored hidpi-scale in get_scaled_osd_dimensions(), so max_lines was dividing by it a second time.
Showing the changes to player/lua/console.lua (1 of 1 file). Show all
Unified · Split
| @@ -814,8 +814,7 @@ local function determine_hovered_item() · 813 unmodified lines | |||
| 814 | y = y - global_margins.t * height | 814 | y = y - global_margins.t * height |
| 815 | -- Calculate how many lines could be printed without decreasing them for | 815 | -- Calculate how many lines could be printed without decreasing them for |
| 816 | -- the input line and OSC. | 816 | -- the input line and OSC. |
| 817 | local max_lines = height / mp.get_property_native('display-hidpi-scale', 1) | 817 | local max_lines = height / opts.font_size |
| 818 | / opts.font_size | ||
| 819 | local clicked_line = math.floor(y / height * max_lines + .5) | 818 | local clicked_line = math.floor(y / height * max_lines + .5) |
| 820 | 819 | ||
| 821 | local offset = first_match_to_print - 1 | 820 | local offset = first_match_to_print - 1 |