summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 12:33:49 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 12:33:49 +0000
commit8a7b7a430dac11b1295ccad96e97ae059e3de2ce (patch)
tree6e19ef130d7a9dfad2e37227573fe8a8f685da50
parent3f371fda9a199c1fe6f3dbcb664631ef4c4b79c3 (diff)
downloadmpv-8a7b7a430dac11b1295ccad96e97ae059e3de2ce.tar.bz2
mpv-8a7b7a430dac11b1295ccad96e97ae059e3de2ce.tar.xz
geometry support for x11
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10729 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--DOCS/en/mplayer.12
-rw-r--r--libvo/vo_x11.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/en/mplayer.1 b/DOCS/en/mplayer.1
index 360c4c93f0..ab0604a443 100644
--- a/DOCS/en/mplayer.1
+++ b/DOCS/en/mplayer.1
@@ -1658,7 +1658,7 @@ It also supports the standard option format to the standard X \-geometry
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
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 079662bafd..3e827dac14 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -245,6 +245,7 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
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;