From 2f93f19afc53547a7fb19288b5ca5a70df4ded15 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 12 Jun 2010 17:57:45 +0200 Subject: [PATCH] Fixed: #979 Implement getWindowPos for Linux --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 8e446a394..f19201905 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -1515,12 +1515,7 @@ void CDriverGL::getWindowPos(uint32 &x, uint32 &y) unsigned int depth = 0; // Get geometry information about root window - if (XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth)) - { - display_width = width; - display_height = height; - } - else + if (!XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth)) { nlwarning("can't get root window geometry"); }