Mercurial > mplayer.hg
diff libvo/vo_xv.c @ 27885:9829cfa41d6d
Replace some of the different inconsistent XGetGeometry uses by a
vo_x11_update_geometry function.
author | reimar |
---|---|
date | Sat, 15 Nov 2008 17:45:55 +0000 |
parents | ad43c827bf24 |
children | 2418fb292375 |
line wrap: on
line diff
--- a/libvo/vo_xv.c Sat Nov 15 17:41:30 2008 +0000 +++ b/libvo/vo_xv.c Sat Nov 15 17:45:55 2008 +0000 @@ -290,11 +290,7 @@ 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