[MPlayer-users] Re: Little patch to get the -geometry option working on 0.90rc2 (and others)
Henk
henk at god.dyndns.org
Mon Dec 30 00:30:03 CET 2002
Mark wrote:
>I would accept a patch to do that but your patch doesn't do that. please remove
>the various white-space changes in the patch, and include the other parts of
>it...
I agree, must be the editor I was working with, back to good old vi, now here's a more civilised patch.
Regards,
Henk
-------------- next part --------------
--- MPlayer-0.90rc2/libvo/vo_xv.c.orig Sun Dec 29 23:07:21 2002
+++ MPlayer-0.90rc2/libvo/vo_xv.c Mon Dec 30 00:22:35 2002
@@ -281,7 +281,10 @@
vo_mouse_autohide=1;
- vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
+ // Quick fix for handling the geometry option.
+ if(!geometry(&vo_dx, &vo_dy, vo_screenwidth, vo_screenheight, d_width, d_height,0)) {
+ vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
+ }
vo_dwidth=d_width; vo_dheight=d_height;
#ifdef HAVE_XF86VM
More information about the MPlayer-users
mailing list