diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 12:01:25 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-12 12:41:52 (GMT) |
commit | 8a2993a6c53e1a5641bd1c500ad4bd54e799299b (patch) | |
tree | d9b4fb4e6525ac7fb166c99350e780cac86dd678 /src/opengl/qpixmapdata_gl_p.h | |
parent | 0265a36425cfcb01d7c35fbb4a7c5907893972a1 (diff) | |
download | Qt-8a2993a6c53e1a5641bd1c500ad4bd54e799299b.zip Qt-8a2993a6c53e1a5641bd1c500ad4bd54e799299b.tar.gz Qt-8a2993a6c53e1a5641bd1c500ad4bd54e799299b.tar.bz2 |
Made QPixmap autotest pass with -graphicssystem opengl
The window surface has been modified to track widget deletion to make
sure it doesn't try to access the widget's context data after deletion.
QGLPixmapData now also uses GL_RGB instead of GL_RGBA when appropriate,
and hasAlphaChannel() has been modified in view of this.
A number of other issues have been fixed in QGLPixmapData, and the
autotest has been modified to use a more lenient pixmap compare function
due to off-by-one pixel errors here and there.
Reviewed-by: Trond
Diffstat (limited to 'src/opengl/qpixmapdata_gl_p.h')
-rw-r--r-- | src/opengl/qpixmapdata_gl_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opengl/qpixmapdata_gl_p.h b/src/opengl/qpixmapdata_gl_p.h index 1b6b7ae..af10f2c 100644 --- a/src/opengl/qpixmapdata_gl_p.h +++ b/src/opengl/qpixmapdata_gl_p.h @@ -115,6 +115,8 @@ private: static bool useFramebufferObjects(); + QImage fillImage(const QColor &color) const; + int m_width; int m_height; @@ -131,6 +133,8 @@ private: // represented by a single fill color mutable QColor m_fillColor; mutable bool m_hasFillColor; + + mutable bool m_hasAlpha; }; QT_END_NAMESPACE |