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
Friedemann Kleint 2016-04-06 13:28:36 +02:00
parent 8104729e63
commit 4701af32df
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -95,7 +95,7 @@ void QWindowsDirect2DBackingStore::beginPaint(const QRegion &region)
painter.setCompositionMode(QPainter::CompositionMode_Source);
for (const QRect &r, region)
for (const QRect &r : region)
painter.fillRect(r, clear);
}