OSC margins are relative to the whole height before subtracting the bottom left margin.
Showing the changes to player/lua/console.lua (1 of 1 file). Show all
Unified · Split
| @@ -276,8 +276,9 @@ local function calculate_max_log_lines() · 275 unmodified lines | ||
| 276 | 276 | select(2, mp.get_property('term-status-msg'):gsub('\\n', '')) |
| 277 | 277 | end |
| 278 | 278 | |
| 279 | − return math.floor((select(2, get_scaled_osd_dimensions()) - bottom_left_margin) | |
| 280 | − * (1 - global_margins.t - global_margins.b) | |
| 279 | + return math.floor((select(2, get_scaled_osd_dimensions()) | |
| 280 | + * (1 - global_margins.t - global_margins.b) | |
| 281 | + - bottom_left_margin) | |
| 281 | 282 | / opts.font_size |
| 282 | 283 | -- Subtract 1 for the input line and 0.5 for the empty |
| 283 | 284 | -- line between the log and the input line. |