diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-27 08:20:35 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-04-27 08:21:38 (GMT) |
commit | 1acf354a1380586a754d2a0ed546e4dceb4296cb (patch) | |
tree | 560265f1ab3db72d9cba1576d2817e04b740b94e /src/gui/egl | |
parent | 69e54ffd1796312aca2db49f19b5de92e6dab3ae (diff) | |
download | Qt-1acf354a1380586a754d2a0ed546e4dceb4296cb.zip Qt-1acf354a1380586a754d2a0ed546e4dceb4296cb.tar.gz Qt-1acf354a1380586a754d2a0ed546e4dceb4296cb.tar.bz2 |
Compile fix qegl_lite.cpp
Diffstat (limited to 'src/gui/egl')
-rw-r--r-- | src/gui/egl/qegl_lite.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/egl/qegl_lite.cpp b/src/gui/egl/qegl_lite.cpp index 2bbf22b..10caf46 100644 --- a/src/gui/egl/qegl_lite.cpp +++ b/src/gui/egl/qegl_lite.cpp @@ -64,6 +64,7 @@ EGLNativeWindowType QEgl::nativeWindow(QWidget* widget) EGLNativePixmapType QEgl::nativePixmap(QPixmap* pixmap) { + Q_UNUSED(pixmap); return 0; } @@ -72,13 +73,11 @@ EGLNativePixmapType QEgl::nativePixmap(QPixmap* pixmap) // return eglGetDisplay(EGLNativeDisplayType(EGL_DEFAULT_DISPLAY)); //} -static QGraphicsSystemScreen *screenForDevice(QPaintDevice *device) +static QPlatformScreen *screenForDevice(QPaintDevice *device) { - QGraphicsSystem *gs = QApplicationPrivate::graphicsSystem(); - if (!gs) - return 0; + QPlatformIntegration *pi = QApplicationPrivate::platformIntegration(); - QList<QGraphicsSystemScreen *> screens = gs->screens(); + QList<QPlatformScreen *> screens = pi->screens(); int screenNumber; if (device && device->devType() == QInternal::Widget) @@ -97,7 +96,7 @@ void QEglProperties::setPaintDeviceFormat(QPaintDevice *dev) return; // Find the QGLScreen for this paint device. - QGraphicsSystemScreen *screen = screenForDevice(dev); + QPlatformScreen *screen = screenForDevice(dev); if (!screen) return; int devType = dev->devType(); |