1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 22:52:18 +00:00
mpv/player
Guido Cella ad6bca9c31 console.lua: subtract --osd-margin-x in the max width calculation
Even if ass:pos() hardcodes the position at 6px from the left, we still
need to subtract the left --osd-margin-x from the available text width.
See how libass/ass_render.c:ass_render_event() subtracts it from
max_text_width without checking if the event is positioned.

The calculation is still not perfect as the width could be made a bit
larger before the text wraps.
2024-06-24 21:30:14 +02:00
..
javascript default.js: handle canceled key bindings 2024-06-06 23:38:39 +03:00
lua console.lua: subtract --osd-margin-x in the max width calculation 2024-06-24 21:30:14 +02:00
audio.c options: remove deprecated auto choice for --mute 2024-06-21 21:29:33 +02:00
client.c player/client: fix typo in description of MPV_ERROR_UNINITIALIZED 2024-05-08 18:52:40 +02:00
client.h
command.c m_option: add a way for aliases to use sub option prefix 2024-06-24 12:51:28 +00:00
command.h options: add --input-commands option 2024-03-21 14:48:53 +00:00
configfiles.c player: replace get_current_time with get_playback_time in some spots 2024-05-29 13:48:40 +00:00
core.h player/playloop: remove now unused get_percent_pos() 2024-06-03 19:16:35 +02:00
external_files.c misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
external_files.h misc/language: move mp_guess_lang_from_filename() here 2024-05-10 01:22:31 +02:00
javascript.c osdep/dirent: add implementation for Windows SDK build 2024-05-06 22:01:17 +02:00
loadfile.c loadfile: update the format of terminal track information 2024-06-24 16:19:31 +02:00
lua.c select.lua: add this script 2024-05-12 23:13:48 +02:00
main.c fuzzers: disallow include command in more principal way 2024-06-24 03:05:09 +02:00
meson.build
misc.c win32: quantize taskbar playback position into uint8 range 2024-06-03 19:16:35 +02:00
osd.c osd: don't use get_percent_pos function 2024-06-03 15:14:40 +02:00
playloop.c player/playloop: remove now unused get_percent_pos() 2024-06-03 19:16:35 +02:00
screenshot.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
screenshot.h
scripting.c select.lua: add this script 2024-05-12 23:13:48 +02:00
sub.c sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
video.c player: put speed adjustment back into playing_audio_pts 2024-05-29 13:48:40 +00:00