scene_xrender.cpp, replace QRect = QRect by QRect::setRect

This commit is contained in:
Thomas Lübking 2011-12-13 14:35:07 +01:00
parent ba529f205a
commit 393b8a3eee

View file

@ -584,7 +584,7 @@ void SceneXrender::Window::performPaint(int mask, QRegion region, WindowPaintDat
QVector<QRect> rects = transformed_shape.rects();
for (int i = 0; i < rects.count(); ++i) {
QRect& r = rects[ i ];
r = QRect(qRound(r.x() * xscale), qRound(r.y() * yscale),
r.setRect(qRound(r.x() * xscale), qRound(r.y() * yscale),
qRound(r.width() * xscale), qRound(r.height() * yscale));
}
transformed_shape.setRects(rects.constData(), rects.count());