summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Sasburg <simon.sasburg@gmail.com>2014-08-10 13:56:34 +0100
committerSimon Sasburg <simon.sasburg@gmail.com>2014-08-11 14:01:47 +0200
commitf126f7cc2703f13e08a9c0a68c19068dde0b161d (patch)
tree1a0001a8922a791a7b20a6cb1b006b4152e59b60 /src
parent7fcb3aad40998188a3dd053c4dcd8b54c95fc974 (diff)
Fix rendering alpha-blended text which needs to be clipped at the top.
Task-number: QTBUG-34148 Change-Id: I9c0694e67cc9883db318c1a1558bdf6e08088db4 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 6f669bd333..2f7e32285f 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -2720,7 +2720,7 @@ void QRasterPaintEngine::alphaPenBlt(const void* src, int bpl, int depth, int rx
scanline += bpl;
}
} else { // 32-bit alpha...
- uint *sl = (uint *) src;
+ uint *sl = (uint *) scanline;
for (int y = y0; y < y1; ++y) {
for (int x = x0; x < x1; ) {
// Skip those with 0 coverage