summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-04-20 07:29:44 +0200
committerGunnar Sletta <gunnar@trolltech.com>2009-04-20 10:10:40 +0200
commit2c5ec5867c0d40f17906aa7b23380218d392970a (patch)
treedecb74edfda3d3bec3c8df5c854cbd6467054558
parent2e5080b136dabf70d0ea3bcb39aff0b5f858056d (diff)
Fix drawhelper pixel-writeback when dest has alpha.
The blending always happens in 32-bit premultiplied so the conversion back to dest-format needs to base itself on premlutiplied too. Task-number: 182246 Reviewed-by: Samuel
-rw-r--r--src/gui/painting/qdrawhelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index efdc7785e2..e7bb1e1bd4 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -370,7 +370,7 @@ Q_STATIC_TEMPLATE_FUNCTION void QT_FASTCALL destStore(QRasterBuffer *rasterBuffe
Q_TEMPLATE_FIX(DST))
{
DST *dest = reinterpret_cast<DST*>(rasterBuffer->scanLine(y)) + x;
- const quint32 *src = reinterpret_cast<const quint32*>(buffer);
+ const quint32p *src = reinterpret_cast<const quint32p*>(buffer);
while (length--)
*dest++ = DST(*src++);
}