mirror of https://github.com/mpv-player/mpv
Revert "console.lua: fix the max log lines calculation"
This reverts commit 5e65999eb2
.
This was wrong because an empty line doesn't occupy as much height as a
filled line. But update the comment so it is not unclear like before why
1.5 is subtracted.
This commit is contained in:
parent
f476c0275b
commit
10789fae1f
|
@ -278,9 +278,9 @@ local function calculate_max_log_lines()
|
|||
return math.floor(select(2, get_scaled_osd_dimensions())
|
||||
* (1 - global_margins.t - global_margins.b)
|
||||
/ opts.font_size
|
||||
-- Subtract 1 for the input line and 1 for the newline
|
||||
-- between the log and the input line.
|
||||
- 2)
|
||||
-- Subtract 1 for the input line and 0.5 for the empty
|
||||
-- line between the log and the input line.
|
||||
- 1.5)
|
||||
end
|
||||
|
||||
-- Takes a list of strings, a max width in characters and
|
||||
|
|
Loading…
Reference in New Issue