diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-03-29 07:37:55 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-03-29 07:39:28 (GMT) |
commit | 9e12625b31e1d95f023fe67deb50e8bf97903994 (patch) | |
tree | 28b834323e17aa1e8359593a5bd9bea6b869bf48 /src/gui | |
parent | 2c38550ddb064215f827f856110128f2bb4fd631 (diff) | |
download | Qt-9e12625b31e1d95f023fe67deb50e8bf97903994.zip Qt-9e12625b31e1d95f023fe67deb50e8bf97903994.tar.gz Qt-9e12625b31e1d95f023fe67deb50e8bf97903994.tar.bz2 |
Compile fix the openkode graphicssystem
Does not work well yet though :(
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/egl/qegl_lite.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/gui/egl/qegl_lite.cpp b/src/gui/egl/qegl_lite.cpp index 60b862b..2bbf22b 100644 --- a/src/gui/egl/qegl_lite.cpp +++ b/src/gui/egl/qegl_lite.cpp @@ -42,7 +42,7 @@ #include <QtGui/qpaintdevice.h> #include <QtGui/qpixmap.h> #include <QtGui/qwidget.h> -#include "qegl_p.h" +#include "qeglcontext_p.h" #if !defined(QT_NO_EGL) @@ -52,19 +52,26 @@ QT_BEGIN_NAMESPACE -EGLSurface QEglContext::createSurface(QPaintDevice *device, const QEglProperties *properties) +EGLNativeDisplayType QEgl::nativeDisplay() { - Q_UNUSED(device); - Q_UNUSED(properties); - return 0; + return EGLNativeDisplayType(EGL_DEFAULT_DISPLAY); +} + +EGLNativeWindowType QEgl::nativeWindow(QWidget* widget) +{ + return (EGLNativeWindowType)(widget->winId()); } -EGLDisplay QEglContext::getDisplay(QPaintDevice *device) +EGLNativePixmapType QEgl::nativePixmap(QPixmap* pixmap) { - Q_UNUSED(device); - return eglGetDisplay(EGLNativeDisplayType(EGL_DEFAULT_DISPLAY)); + return 0; } +//EGLDisplay QEglContext::display() +//{ +// return eglGetDisplay(EGLNativeDisplayType(EGL_DEFAULT_DISPLAY)); +//} + static QGraphicsSystemScreen *screenForDevice(QPaintDevice *device) { QGraphicsSystem *gs = QApplicationPrivate::graphicsSystem(); |