]> granicus.if.org Git - libass/commit
Fix \pbo
authorOleg Oshmyan <chortos@inbox.lv>
Tue, 7 Jan 2014 13:32:05 +0000 (15:32 +0200)
committerOleg Oshmyan <chortos@inbox.lv>
Wed, 8 Jan 2014 01:18:55 +0000 (03:18 +0200)
commit97b157f5625b4d4caf50309a20e7da09f7464d8c
treee2327da16545915953d8dfab7877d348e5b14395
parentde69ffc0367b4fa447cbe1c14d31d9ac7ef00c4e
Fix \pbo

b61d260b attempted to add support for \p scaling to \pbo.
However, while it fixed the exact sample originally reported,
it broke \pbo with other \p values, including \p1, by confusing
the direction of scaling and the units in which \pbo is measured.

In addition, the descenders assigned to drawings have always
had a wrong sign, causing lines that contain drawings with \pbo
to be shifted in the wrong direction: negative \pbo raised bottom-
aligned lines, while positive \pbo lowered top-aligned lines.

All errors and fixes have been confirmed with VSFilter.
libass/ass_drawing.c