[MPlayer-dev-eng] text subtitle position (sub_pos)

Oskar Liljeblad oskar at osk.mine.nu
Fri Sep 13 10:53:24 CEST 2002


On Friday, September 13, 2002 at 10:40, Oskar Liljeblad wrote:
[..]
>     obj->y = (dys * sub_pos / 100) - obj->params.subtitle.lines*vo_font->height;
>
> But this isn't correct (for various reasons). Maybe someone could
> help me out here?

Hmm. This works:

    obj->y -= dys * (100-sub_pos) / 100;

It does exactly what I need and is shorter than the previous 5 lines.

Oskar Liljeblad (oskar at osk.mine.nu)



More information about the MPlayer-dev-eng mailing list