scene_xrender.cpp, replace QRect = QRect by QRect::setRect
This commit is contained in:
parent
ba529f205a
commit
393b8a3eee
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue