summaryrefslogtreecommitdiffstats
path: root/libvo/gl_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 17:45:55 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-11-15 17:45:55 +0000
commit87bee02b191b7400532ff40c21da8dd43c15d289 (patch)
tree6ae09393e5b955e8403554db280d6bc390e68094 /libvo/gl_common.c
parent252f6d5093b732e3762e97348af4e8599d09a999 (diff)
downloadmpv-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/gl_common.c')
-rw-r--r--libvo/gl_common.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index 192906285c..369556b96a 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -1607,13 +1607,7 @@ int setGlWindow(XVisualInfo **vinfo, GLXContext *context, Window win)
// 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);