[MPlayer-dev-eng] Allow progress bar osd to be moved to bottom of window

Nicolas George nicolas.george at normalesup.org
Thu Feb 23 00:46:08 CET 2012


Le quartidi 4 ventôse, an CCXX, Changyu Li a écrit :
> Thanks guys, I've taken your opinions into account. The default value of
> progbar-align is 50 for center, 0 for top, 100 bottom.

Thanks. A few more detail, if you do not mind.

> I'm not sure how I should change the man pages though. I added
> porgbar-align to the "example mplayer configuration file" section. What
> else should I do?

In the "OSD/SUBTITLE OPTIONS", a paragraph describing the option and
explaining the value. Look for "overlapsub" in the man page, and imitate the
syntax.

> +        int y=(dys-vo_font->height)*(progbar_align/100.f);

It is usually a better idea to write "total * frac / 100" instead of relying
on floats.

(Unless you fear integer overflows, but that is very unlikely with the
height of a screen.)

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20120223/b20800cc/attachment.asc>


More information about the MPlayer-dev-eng mailing list