summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
authoral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-21 17:31:44 +0000
committeral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-21 17:31:44 +0000
commit362be18be60318f8ee5ee28a09e5aa04d7419106 (patch)
tree1a15e0426458abda20485466aebca52adf17b17e /libvo/vo_xv.c
parent140b59994a97cd828f22f3f58967cc3a4b1e0707 (diff)
downloadmpv-362be18be60318f8ee5ee28a09e5aa04d7419106.tar.bz2
mpv-362be18be60318f8ee5ee28a09e5aa04d7419106.tar.xz
Make -wid behave more consistent.
Original patch by kiriuja |mplayer-patches >ta< en-directo >tod< net| git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15541 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 36a9fdac69..e485743dae 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -298,6 +298,11 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
ButtonReleaseMask |
ExposureMask);
XMapWindow(mDisplay, vo_window);
+ XGetGeometry(mDisplay, vo_window, &mRoot,
+ &drwX, &drwY, &vo_dwidth, &vo_dheight,
+ &drwBorderWidth, &drwDepth);
+ drwX = drwY = 0; // coordinates need to be local to the window
+ aspect_save_prescale(vo_dwidth, vo_dheight);
} else
{
drwX = vo_dx;