From 362be18be60318f8ee5ee28a09e5aa04d7419106 Mon Sep 17 00:00:00 2001 From: al Date: Sat, 21 May 2005 17:31:44 +0000 Subject: 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 --- libvo/vo_xv.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libvo/vo_xv.c') 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; -- cgit v1.2.3