summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-03 13:18:22 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-03 13:18:22 +0000
commit90872c4792323cd5adccec7850a6e39c3e031236 (patch)
treeb88c743eddf8425f992f7e82cc89fdad464000e0 /libvo/vo_xv.c
parent72d2aaf2ac4002d79656b572142f0f183bdf5940 (diff)
downloadmpv-90872c4792323cd5adccec7850a6e39c3e031236.tar.bz2
mpv-90872c4792323cd5adccec7850a6e39c3e031236.tar.xz
-geometry support
patch by Henk <henk@god.dyndns.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8739 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 0395330930..dd1bbdc65c 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -281,7 +281,10 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32
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