direct2d: Fix pixmap fills in composition emulation mode
When painting a pixmap with rasterFill, the brush should be offset to match the fill path. Change-Id: I4e361932643c4a98dce74e55ed16fae274bce43b Reviewed-by: Louai Al-Khanji <louai.al-khanji@theqtcompany.com>
This commit is contained in:
parent
916dfcb827
commit
a570e8b0f6
@ -1471,7 +1471,8 @@ void QWindowsDirect2DPaintEngine::drawPixmap(const QRectF &r,
|
||||
r.x(), r.y() + r.height()
|
||||
};
|
||||
const QVectorPath vp(points, 4, 0, QVectorPath::RectangleHint);
|
||||
const QBrush brush(sr.isValid() ? pm.copy(sr.toRect()) : pm);
|
||||
QBrush brush(sr.isValid() ? pm.copy(sr.toRect()) : pm);
|
||||
brush.setTransform(QTransform::fromTranslate(r.x(), r.y()));
|
||||
rasterFill(vp, brush);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user