summaryrefslogtreecommitdiffstats
path: root/sub/osd_libass.c
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2023-11-24 15:28:02 +0100
committerDudemanguy <random342@airmail.cc>2023-11-27 15:02:28 +0000
commit0c4812aa72f4a34d342ef3939587a95cbfa0bf40 (patch)
treed6e7b8c5d48ea0df05be4e6c0f36b86248f50e42 /sub/osd_libass.c
parent65b55433329bde66f0338d94d1bd18831424b785 (diff)
downloadmpv-0c4812aa72f4a34d342ef3939587a95cbfa0bf40.tar.bz2
mpv-0c4812aa72f4a34d342ef3939587a95cbfa0bf40.tar.xz
options: add --osd-bar-border-size
Closes #1484. The default size is smaller than the previous --osd-border-size default value of 3 with the default --osd-bar-h.
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r--sub/osd_libass.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index a3b19c96df..d5d317d776 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -378,12 +378,7 @@ static void get_osd_bar_box(struct osd_state *osd, struct osd_object *obj,
*o_w = track->PlayResX * (opts->osd_bar_w / 100.0);
*o_h = track->PlayResY * (opts->osd_bar_h / 100.0);
- float base_size = 0.03125;
- style->Outline *= *o_h / track->PlayResY / base_size;
- // So that the chapter marks have space between them
- style->Outline = MPMIN(style->Outline, *o_h / 5.2);
- // So that the border is not 0
- style->Outline = MPMAX(style->Outline, *o_h / 32.0);
+ style->Outline = opts->osd_bar_border_size;
// Rendering with shadow is broken (because there's more than one shape)
style->Shadow = 0;