diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 17:45:55 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-11-15 17:45:55 +0000 |
commit | 87bee02b191b7400532ff40c21da8dd43c15d289 (patch) | |
tree | 6ae09393e5b955e8403554db280d6bc390e68094 /libvo/vo_xv.c | |
parent | 252f6d5093b732e3762e97348af4e8599d09a999 (diff) | |
download | mpv-87bee02b191b7400532ff40c21da8dd43c15d289.tar.bz2 mpv-87bee02b191b7400532ff40c21da8dd43c15d289.tar.xz |
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
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r-- | libvo/vo_xv.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 |