Mercurial > mplayer.hg
diff libvo/gl_common.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 | 428125c9e08e |
children | 463a30e51b44 |
line wrap: on
line diff
--- a/libvo/gl_common.c Sat Nov 15 17:41:30 2008 +0000 +++ b/libvo/gl_common.c Sat Nov 15 17:45:55 2008 +0000 @@ -1607,13 +1607,7 @@ // set new values vo_window = win; - { - Window root; - int tmp; - unsigned utmp; - XGetGeometry(mDisplay, vo_window, &root, &tmp, &tmp, - (unsigned *)&vo_dwidth, (unsigned *)&vo_dheight, &utmp, &utmp); - } + vo_x11_update_geometry(); if (!keep_context) { void *(*getProcAddress)(const GLubyte *); const char *(*glXExtStr)(Display *, int);