bool translucentBackground;
#endif
#endif
- bool inSetGeometry;
};
QRasterWindowSurface::QRasterWindowSurface(QWidget *window, bool setDefaultSurface)
#endif
#endif
d_ptr->image = 0;
- d_ptr->inSetGeometry = false;
}
{
QWindowSurface::setGeometry(rect);
Q_D(QRasterWindowSurface);
- d->inSetGeometry = true;
if (d->image == 0 || d->image->width() < rect.width() || d->image->height() < rect.height()) {
#if defined(Q_WS_X11) && !defined(QT_NO_XRENDER)
if (d_ptr->translucentBackground)
#endif
prepareBuffer(QImage::systemFormat());
}
- d->inSetGeometry = false;
}
// from qwindowsurface.cpp
d->image = new QImage(width, height, format);
- if (oldImage && d->inSetGeometry && hasStaticContents()) {
+ if (oldImage && hasStaticContents()) {
const uchar *src = oldImage->constBits();
uchar *dst = d->image->bits();