diff options
author | Andy Shaw <qt-info@nokia.com> | 2010-02-19 13:47:38 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2010-02-19 13:47:38 (GMT) |
commit | 53fce0ced68ae5d828dc19d05caa09e05b4e5151 (patch) | |
tree | 08ec01b26f03815835edc086bb0f755fc7185eaa /src/opengl | |
parent | 413a40f5c641b6908f73aadcdea3572516c7bd3c (diff) | |
download | Qt-53fce0ced68ae5d828dc19d05caa09e05b4e5151.zip Qt-53fce0ced68ae5d828dc19d05caa09e05b4e5151.tar.gz Qt-53fce0ced68ae5d828dc19d05caa09e05b4e5151.tar.bz2 |
Fix building in a namespace on Windows
Reviewed-by: hjk
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 8235a5c..c08d04a 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -89,6 +89,9 @@ QT_BEGIN_NAMESPACE //#define QT_GL_NO_SCISSOR_TEST +#if defined(Q_WS_WIN) +extern Q_GUI_EXPORT bool qt_cleartype_enabled; +#endif extern QImage qt_imageForBrush(int brushStyle, bool invert); @@ -1555,7 +1558,6 @@ bool QGL2PaintEngineEx::begin(QPaintDevice *pdev) #if !defined(QT_OPENGL_ES_2) #if defined(Q_WS_WIN) - extern Q_GUI_EXPORT bool qt_cleartype_enabled; if (qt_cleartype_enabled) #endif d->glyphCacheType = QFontEngineGlyphCache::Raster_RGBMask; |