From 87bee02b191b7400532ff40c21da8dd43c15d289 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 15 Nov 2008 17:45:55 +0000 Subject: Replace some of the different inconsistent XGetGeometry uses by a vo_x11_update_geometry function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27919 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libvo/vo_xv.c') diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 6949c00f0a..8b6cfda146 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -290,11 +290,7 @@ static int 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); - if (vo_dwidth <= 0) vo_dwidth = d_width; - if (vo_dheight <= 0) vo_dheight = d_height; + vo_x11_update_geometry(); aspect_save_prescale(vo_dwidth, vo_dheight); } } else -- cgit v1.2.3