changeset 10728:713a1ff7046e

geometry support for x11
author attila
date Sun, 31 Aug 2003 12:33:49 +0000
parents 8e85b87339fe
children 07870312c054
files DOCS/en/mplayer.1 libvo/vo_x11.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/en/mplayer.1	Sat Aug 30 22:57:54 2003 +0000
+++ b/DOCS/en/mplayer.1	Sun Aug 31 12:33:49 2003 +0000
@@ -1658,7 +1658,7 @@
 option.
 The values given must be integers.
 
-Note: This option is only supported by vo xv, xvidix and tdfxfb.
+Note: This option is only supported by vo x11, xv, xvidix and tdfxfb.
 
 .I EXAMPLE:
 .PD 0
--- a/libvo/vo_x11.c	Sat Aug 30 22:57:54 2003 +0000
+++ b/libvo/vo_x11.c	Sun Aug 31 12:33:49 2003 +0000
@@ -245,6 +245,7 @@
  srcW= width;
  srcH= height;
  vo_dx=( vo_screenwidth - d_width ) / 2; vo_dy=( vo_screenheight - d_height ) / 2;
+ geometry(&vo_dx, &vo_dy, &d_width, &d_height, vo_screenwidth, vo_screenheight);
  vo_dwidth=d_width; vo_dheight=d_height;
  
  if( flags&0x03 ) fullscreen = 1;