[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.128,1.129

Arpi of Ize arpi at mplayerhq.hu
Fri Jan 3 14:18:26 CET 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv28307

Modified Files:
	vo_xv.c 
Log Message:
-geometry support
patch by Henk <henk at god.dyndns.org>


Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -r1.128 -r1.129
--- vo_xv.c	1 Jan 2003 12:02:49 -0000	1.128
+++ vo_xv.c	3 Jan 2003 13:18:22 -0000	1.129
@@ -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-cvslog mailing list