diff options
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfshooks_x11.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfshooks_x11.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfshooks_x11.cpp b/src/plugins/platforms/eglfs/qeglfshooks_x11.cpp index af750a73f1..cb91858b57 100644 --- a/src/plugins/platforms/eglfs/qeglfshooks_x11.cpp +++ b/src/plugins/platforms/eglfs/qeglfshooks_x11.cpp @@ -52,7 +52,7 @@ public: virtual void platformDestroy(); virtual EGLNativeDisplayType platformDisplay() const; virtual QSize screenSize() const; - virtual EGLNativeWindowType createNativeWindow(const QSize &size); + virtual EGLNativeWindowType createNativeWindow(const QSize &size, const QSurfaceFormat &format); virtual void destroyNativeWindow(EGLNativeWindowType window); virtual bool hasCapability(QPlatformIntegration::Capability cap) const; }; @@ -84,8 +84,10 @@ QSize QEglFSX11Hooks::screenSize() const return QSize(env.at(0).toInt(), env.at(1).toInt()); } -EGLNativeWindowType QEglFSX11Hooks::createNativeWindow(const QSize &size) +EGLNativeWindowType QEglFSX11Hooks::createNativeWindow(const QSize &size, const QSurfaceFormat &format) { + Q_UNUSED(format); + Window root = DefaultRootWindow(display); XSetWindowAttributes swa; memset(&swa, 0, sizeof(swa)); |