src/gui/painting/qwindowsurface_qws.cpp
changeset 37 758a864f9613
parent 19 fcece45ef507
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   880         QPainter p(&img);
   880         QPainter p(&img);
   881         p.setCompositionMode(QPainter::CompositionMode_Source);
   881         p.setCompositionMode(QPainter::CompositionMode_Source);
   882         const QVector<QRect> rects = rgn.rects();
   882         const QVector<QRect> rects = rgn.rects();
   883         const QColor blank = Qt::transparent;
   883         const QColor blank = Qt::transparent;
   884         for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) {
   884         for (QVector<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it) {
   885             p.fillRect(*it, blank);
   885             QRect r = *it;
       
   886 #ifdef Q_BACKINGSTORE_SUBSURFACES
       
   887             r.translate(painterOffset());
       
   888 #endif
       
   889             p.fillRect(r, blank);
   886         }
   890         }
   887     }
   891     }
   888     QWSWindowSurface::beginPaint(rgn);
   892     QWSWindowSurface::beginPaint(rgn);
   889 }
   893 }
   890 
   894