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/gl_common.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libvo/gl_common.c') 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); -- cgit v1.2.3