Commit 77135c4
committed
ProgressBarCache: fix full bar drawing
This is a hack that injects a newline to force this single component to
produce two separate lines for rendering. in order to produce smaller
output, the previous implementation baked both drawings into a single
line using an interest hack with the way that ASS drawings work. Well,
it seems that interesting hack was more with the way that libass
works, and at some point the libass behavior changed, which broke the
rendering.
When a video was fully cached, the bar would become 100% the width of
the canvas. This would cause libass's line-wrapping behavior to
engage, which would result in the bar being drawn incorrectly. This
was fixed by splitting the bar into two separate. Positioned
independently, they do not collide with each other and there is no
problem.1 parent dfaa5c6 commit 77135c4
1 file changed
+21
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | | - | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | | - | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
96 | | - | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
0 commit comments