0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

osd: disable border for inner part of the OSD bar

This commit is contained in:
wm4 2013-03-31 21:12:53 +02:00
parent 47d35ca6be
commit 6cdc604f59

View File

@ -286,7 +286,7 @@ static void update_progbar(struct osd_state *osd, struct osd_object *obj)
struct ass_draw *d = &(struct ass_draw) { .scale = 4 };
// filled area
d->text = talloc_asprintf_append(d->text, "{\\pos(%f,%f)}", px, py);
d->text = talloc_asprintf_append(d->text, "{\\bord0\\pos(%f,%f)}", px, py);
ass_draw_start(d);
float pos = osd->progbar_value * width - border / 2;
ass_draw_rect_cw(d, 0, 0, pos, height);