diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2011-10-13 14:25:18 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-13 15:07:41 +0200 |
commit | 1582407fc782c0befd0760633324dd5c206524a1 (patch) | |
tree | e993d66e824da41ece006d44c48acd4df0ba749e /src/gui/egl/qegl_p.h | |
parent | 30cb91e17d2fbbdce90f7542f44e12af971ba2de (diff) |
Remove Q_WS_ and Q_OS_SYMBIAN from QtGui.
Change-Id: I2ac3376513c3fbfc81a2e695a73a0d948d2696bc
Reviewed-on: http://codereview.qt-project.org/6607
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/egl/qegl_p.h')
-rw-r--r-- | src/gui/egl/qegl_p.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h index e0c02aa150..db8d8b7a38 100644 --- a/src/gui/egl/qegl_p.h +++ b/src/gui/egl/qegl_p.h @@ -87,25 +87,6 @@ typedef int EGLClientBuffer; #endif -#if defined(Q_WS_X11) -// If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace -// may have been polluted with X #define's. The following makes sure -// the X11 headers were included properly and then cleans things up. -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#undef Bool -#undef Status -#undef None -#undef KeyPress -#undef KeyRelease -#undef FocusIn -#undef FocusOut -#undef Type -#undef FontChange -#undef CursorShape -#undef Unsorted -#undef GrayScale -#endif // Internally we use the EGL-prefixed native types which are used in EGL >= 1.3. // For older versions of EGL, we have to define these types ourselves here: @@ -133,37 +114,11 @@ QT_BEGIN_NAMESPACE #endif // Try to get some info to debug the symbian build failues: -#ifdef Q_OS_SYMBIAN - -#ifdef EGL_KHR_image -#warning "EGL_KHR_image is defined" -#else -#warning "EGL_KHR_image is NOT defined" -#endif - -#ifdef EGL_KHR_image_base -#warning "EGL_KHR_image_base is defined" -#else -#warning "EGL_KHR_image_base is NOT defined" -#endif - -#ifdef EGL_EGLEXT_PROTOTYPES -#warning "EGL_EGLEXT_PROTOTYPES is defined" -#else -#warning "EGL_EGLEXT_PROTOTYPES NOT not defined" -#endif - -#endif // Declare/define the bits of EGL_KHR_image_base we need: #if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base) -#ifdef Q_OS_SYMBIAN -//symbian version of eglext.h differs from the khronos reference -typedef int EGLImageKHR; -#else typedef void *EGLImageKHR; -#endif #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) #define EGL_IMAGE_PRESERVED_KHR 0x30D2 @@ -230,9 +185,6 @@ namespace QEgl { Q_GUI_EXPORT EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img); Q_GUI_EXPORT EGLBoolean eglSwapBuffersRegion2NOK(EGLDisplay dpy, EGLSurface surface, EGLint count, const EGLint *rects); -#ifdef Q_WS_X11 - Q_GUI_EXPORT VisualID getCompatibleVisualId(EGLConfig config); -#endif } Q_DECLARE_OPERATORS_FOR_FLAGS(QEgl::ConfigOptions) |