summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-08-18 13:46:00 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-08-18 14:31:33 (GMT)
commit89cc6c1b49e3e33fc7787f1dd9cfaadb43ad4bac (patch)
tree4fd9ffc845a4372250520e7664b844afd198eaec /qmake
parentd136f3c444041d07a7a5fe9358c9200c8bdb7602 (diff)
downloadQt-89cc6c1b49e3e33fc7787f1dd9cfaadb43ad4bac.zip
Qt-89cc6c1b49e3e33fc7787f1dd9cfaadb43ad4bac.tar.gz
Qt-89cc6c1b49e3e33fc7787f1dd9cfaadb43ad4bac.tar.bz2
Fixed QRasterPaintEngine::drawImage() for 1x1 source rectangles.
QRasterPaintEngine::drawImage() used an optimized code path when the source rectangle was 1x1. It would sample the source image at the source rectangle's top-left corner and use the sampled color to fill the entire target rectangle. There were two bugs, however: 1) The sampled color was assumed to be non-premultiplied, so you could end up with premultiplying the color twice. This was fixed by avoiding premultiplying a second time if the source image has a premultiplied format. 2) Since the source rectangle is a QRectF, it could easily cross pixel boundaries even if it's 1x1. In this case, it is not correct to fill the target rectangle with a single color. This was fixed by checking if the entire source rectangle is contained in a single pixel before taking the optimized code path. Task-number: 256950 Reviewed-by: Trond
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions