Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15
-
None
Description
I'd expect the following implementations to give exactly the same result, assuming:
QPixmap m_bgCache; QPainter* p;
A/
p->drawPixmap(QPointF{}, m_bgCache);
B/
QPainter::PixmapFragment fragment{ 0., 0., 0., 0., (qreal)m_bgCache.width(), (qreal) m_bgCache.height(), 1., 1., 0., 1. }; p->drawPixmapFragments(&fragment, 1, m_bgCache);
Alas, first case gives me good.png and second case gives me bad.png