equal
deleted
inserted
replaced
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 |