diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-02-16 12:29:36 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-03-02 08:24:23 (GMT) |
commit | 28b85c76dd0ba4796ec519b890f6fab0fc813061 (patch) | |
tree | 4defe4c405a29fb1c07bb4392258e8f1ccf4f0e7 /src/gui/egl/qegl_x11.cpp | |
parent | 56d32b57814cb35409bc9b0076ec753de488ae7f (diff) | |
download | Qt-28b85c76dd0ba4796ec519b890f6fab0fc813061.zip Qt-28b85c76dd0ba4796ec519b890f6fab0fc813061.tar.gz Qt-28b85c76dd0ba4796ec519b890f6fab0fc813061.tar.bz2 |
Move static methods from QEglContext to QEgl namespace
Reviewed-By: Aleksandar Sasha Babic
Diffstat (limited to 'src/gui/egl/qegl_x11.cpp')
-rw-r--r-- | src/gui/egl/qegl_x11.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp index cd55849..4a813c6 100644 --- a/src/gui/egl/qegl_x11.cpp +++ b/src/gui/egl/qegl_x11.cpp @@ -84,17 +84,17 @@ EGLSurface QEglContext::createSurface(QPaintDevice *device, const QEglProperties props = 0; EGLSurface surf; if (devType == QInternal::Widget) - surf = eglCreateWindowSurface(dpy, cfg, windowDrawable, props); + surf = eglCreateWindowSurface(QEgl::display(), cfg, windowDrawable, props); else - surf = eglCreatePixmapSurface(dpy, cfg, pixmapDrawable, props); + surf = eglCreatePixmapSurface(QEgl::display(), cfg, pixmapDrawable, props); if (surf == EGL_NO_SURFACE) { qWarning() << "QEglContext::createSurface(): Unable to create EGL surface:" - << errorString(eglGetError()); + << QEgl::errorString(); } return surf; } -EGLNativeDisplayType QEglContext::nativeDisplay() +EGLNativeDisplayType QEgl::nativeDisplay() { Display *xdpy = QX11Info::display(); if (!xdpy) { |