Skip to content

Commit

Permalink
Update iteration over QRegion rects
Browse files Browse the repository at this point in the history
  • Loading branch information
aronbierbaum committed Oct 3, 2022
1 parent 0afb526 commit 2af6a28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions widgets/GDIRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ void GDIRenderer::drawBackground()
//HDC hdc = d.device_context;
Graphics g(d.device_context);
SolidBrush brush(Color(bc.alpha(), bc.red(), bc.green(), bc.blue())); //argb
const QVector<QRect> bg(bgRegion.rects());
foreach (const QRect& r, bg) {
foreach (const QRect& r, bgRegion) {
g.FillRectangle(&brush, r.x(), r.y(), r.width(), r.height());
}
}
Expand Down

0 comments on commit 2af6a28

Please sign in to comment.