diff options
author | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-21 17:31:44 +0000 |
---|---|---|
committer | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-05-21 17:31:44 +0000 |
commit | 362be18be60318f8ee5ee28a09e5aa04d7419106 (patch) | |
tree | 1a15e0426458abda20485466aebca52adf17b17e /libvo/vo_xv.c | |
parent | 140b59994a97cd828f22f3f58967cc3a4b1e0707 (diff) | |
download | mpv-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.c | 5 |
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; |