src/gui/egl/qegl_qws.cpp
changeset 18 2f34d5167611
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
    62     Q_UNUSED(device);
    62     Q_UNUSED(device);
    63     Q_UNUSED(properties);
    63     Q_UNUSED(properties);
    64     return EGL_NO_SURFACE;
    64     return EGL_NO_SURFACE;
    65 }
    65 }
    66 
    66 
    67 EGLDisplay QEglContext::getDisplay(QPaintDevice *device)
       
    68 {
       
    69     Q_UNUSED(device);
       
    70     return eglGetDisplay(EGLNativeDisplayType(EGL_DEFAULT_DISPLAY));
       
    71 }
       
    72 
       
    73 static QScreen *screenForDevice(QPaintDevice *device)
    67 static QScreen *screenForDevice(QPaintDevice *device)
    74 {
    68 {
    75     QScreen *screen = qt_screen;
    69     QScreen *screen = qt_screen;
    76     if (!screen)
    70     if (!screen)
    77         return 0;
    71         return 0;