Direct2D QPA: Fix build.
Directly link against DwmApi and fix breakage introduced by refactoring QRegion. Change-Id: I45cd696de630aebb5347130560ab69530eefbcdb Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>bb10
parent
8104729e63
commit
4701af32df
|
|
@ -4,7 +4,7 @@ QT *= core-private
|
|||
QT *= gui-private
|
||||
QT *= platformsupport-private
|
||||
|
||||
LIBS *= -ld2d1 -ld3d11 -ldwrite -lVersion -lgdi32
|
||||
LIBS += -ldwmapi -ld2d1 -ld3d11 -ldwrite -lVersion -lgdi32
|
||||
|
||||
include(../windows/windows.pri)
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ void QWindowsDirect2DBackingStore::beginPaint(const QRegion ®ion)
|
|||
|
||||
painter.setCompositionMode(QPainter::CompositionMode_Source);
|
||||
|
||||
for (const QRect &r, region)
|
||||
for (const QRect &r : region)
|
||||
painter.fillRect(r, clear);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue