eglMakeCurrent(m_eglDisplay, m_eglSurface, m_eglSurface, m_eglContext);
LOG_INFO("GLESGraphicsystem", "made current");
- eglSwapInterval(m_eglDisplay, 1); // TODO: does not seem to work
+ eglSwapInterval(m_eglDisplay, 1);
if (!initOpenGLES(m_windowWidth, m_windowHeight))
{
XVisualInfo* windowVis = new XVisualInfo();
if (windowVis)
{
- windowVis->depth = 32;//DefaultDepth(dpy, 0);
+ windowVis->depth = DefaultDepth(dpy, DefaultScreen(dpy));
if (!XMatchVisualInfo( dpy, 0, windowVis->depth, TrueColor, windowVis))
{
LOG_ERROR("X11WindowSystem", "Error: Required visual not found\n");
{
bool result = true;
LOG_DEBUG("X11WindowSystem", "redirecting all windows");
- Window root = RootWindow(x11Display, 0);
+ Window root = RootWindow(x11Display, DefaultScreen(x11Display));
XCompositeRedirectSubwindows(x11Display,root,CompositeRedirectManual);
XSync(x11Display,0);
return result;
LOG_DEBUG("X11WindowSystem", "Get root window");
bool result = true;
CompositorWindow = None;
- Window root = RootWindow(x11Display,0);
+ Window root = RootWindow(x11Display, DefaultScreen(x11Display));
LOG_DEBUG("X11WindowSystem", "Creating Compositor Window");
LOG_DEBUG("X11WindowSystem", "Cleanup");
if (None != CompositorWindow)
{
- Window root = RootWindow(x11Display, 0);
+ Window root = RootWindow(x11Display, DefaultScreen(x11Display));
XCompositeUnredirectSubwindows(x11Display,root,CompositeRedirectManual);
XDestroyWindow(x11Display,CompositorWindow);
}