From 442c9629aef4ffda92800d02a334b35938724650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 18 Aug 2012 22:00:33 +0200 Subject: [PATCH] Code reorganization. --- src/Contexts/XEglContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Contexts/XEglContext.cpp b/src/Contexts/XEglContext.cpp index 6486d8588..8fbd47fec 100644 --- a/src/Contexts/XEglContext.cpp +++ b/src/Contexts/XEglContext.cpp @@ -34,8 +34,6 @@ XEglContext::XEglContext(int&, char**, const string& title, const Math::Vector2< #else eglBindAPI(EGL_OPENGL_ES_API); #endif - int screenNumber = DefaultScreen(xDisplay); - Window root = RootWindow(xDisplay, screenNumber); /* Choose EGL config */ static const EGLint attribs[] = { @@ -73,6 +71,7 @@ XEglContext::XEglContext(int&, char**, const string& title, const Math::Vector2< } /* Create X Window */ + Window root = RootWindow(xDisplay, DefaultScreen(display)); XSetWindowAttributes attr; attr.background_pixel = 0; attr.border_pixel = 0;