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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Feb 22 17:53:43 CET 2012


On Tue, Feb 21, 2012 at 06:57:28PM -0500, ironyman13 at gmail.com wrote:
> +	int progbar_dy = 0;
> +	if(bottom_progbar){
> +	    progbar_dy = -y + vo_image_height-get_height(OSD_PB_START,h);

I don't think using vo_image_height is correct at all, the video
image height has nothing to do with the height of the rendered
video which yet again are both independent from size of the OSD area.
I think you'd just want to change
        int y=(dys-vo_font->height)/2;
to something like
        int y=(dys-vo_font->height)*progbar_v_align;
(if making it a float, or something slightly different
for the more customary 0..100 scale).


More information about the MPlayer-dev-eng mailing list