diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-20 05:29:44 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-04-20 08:10:40 (GMT) |
commit | 2c5ec5867c0d40f17906aa7b23380218d392970a (patch) | |
tree | decb74edfda3d3bec3c8df5c854cbd6467054558 /src/gui/painting/qdrawhelper.cpp | |
parent | 2e5080b136dabf70d0ea3bcb39aff0b5f858056d (diff) | |
download | Qt-2c5ec5867c0d40f17906aa7b23380218d392970a.zip Qt-2c5ec5867c0d40f17906aa7b23380218d392970a.tar.gz Qt-2c5ec5867c0d40f17906aa7b23380218d392970a.tar.bz2 |
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
Diffstat (limited to 'src/gui/painting/qdrawhelper.cpp')
-rw-r--r-- | src/gui/painting/qdrawhelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp index efdc778..e7bb1e1 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++); } |