summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-07-30 08:15:46 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2009-07-30 08:15:46 (GMT)
commitd2820e3a67812d31f45df282b378a75511bb1c4b (patch)
tree8ab0213d5250289b30d7e26e50ab85fe3c5c4068 /src/gui/painting
parent9523b27be4fe00870d19c4ff4caa2d78dcf520e6 (diff)
parent0ff4c453bf3d549e8344ab18f643f61a8b6174ef (diff)
downloadQt-d2820e3a67812d31f45df282b378a75511bb1c4b.zip
Qt-d2820e3a67812d31f45df282b378a75511bb1c4b.tar.gz
Qt-d2820e3a67812d31f45df282b378a75511bb1c4b.tar.bz2
Merge branch 'texture_from_pixmap'
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qwindowsurface_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qwindowsurface_x11.cpp b/src/gui/painting/qwindowsurface_x11.cpp
index d8b0d9e..95f6ce3 100644
--- a/src/gui/painting/qwindowsurface_x11.cpp
+++ b/src/gui/painting/qwindowsurface_x11.cpp
@@ -154,7 +154,7 @@ void QX11WindowSurface::setGeometry(const QRect &rect)
QX11PixmapData *oldData = static_cast<QX11PixmapData *>(d_ptr->device.pixmapData());
Q_ASSERT(oldData);
- if (!oldData->uninit && hasStaticContents()) {
+ if (!(oldData->flags & QX11PixmapData::Uninitialized) && hasStaticContents()) {
// Copy the content of the old pixmap into the new one.
QX11PixmapData *newData = new QX11PixmapData(QPixmapData::PixmapType);
newData->resize(size.width(), size.height());
@@ -175,7 +175,7 @@ void QX11WindowSurface::setGeometry(const QRect &rect)
dx, dy, qMin(boundingRect.width(), size.width()),
qMin(boundingRect.height(), size.height()), dx, dy);
XFreeGC(X11->display, tmpGc);
- newData->uninit = false;
+ newData->flags &= ~QX11PixmapData::Uninitialized;
d_ptr->device = QPixmap(newData);
} else {