summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-08-03 13:46:04 (GMT)
committerMorten Sorvig <msorvig@trolltech.com>2009-09-04 12:20:42 (GMT)
commita42610cc9c9cb9f8de52b519fad190746063335f (patch)
treeeed77fd2a77399e83c87cb249bfd43cffa489e85 /src/gui
parent991b6bc973238a6fd73c4c71e7c642b8cc455df3 (diff)
downloadQt-a42610cc9c9cb9f8de52b519fad190746063335f.zip
Qt-a42610cc9c9cb9f8de52b519fad190746063335f.tar.gz
Qt-a42610cc9c9cb9f8de52b519fad190746063335f.tar.bz2
Wizard background images incorrect in Snow Leopard.
We need to clear the QPixmap before the image is drawn using the CGContextDrawImage(). Reviewed-by: Norwegian Rock Cat
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/image/qpixmap_mac.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_mac.cpp b/src/gui/image/qpixmap_mac.cpp
index 3a9676d..35d5d4b 100644
--- a/src/gui/image/qpixmap_mac.cpp
+++ b/src/gui/image/qpixmap_mac.cpp
@@ -1321,6 +1321,7 @@ QPixmap QPixmap::fromMacCGImageRef(CGImageRef image)
const size_t w = CGImageGetWidth(image),
h = CGImageGetHeight(image);
QPixmap ret(w, h);
+ ret.fill(Qt::transparent);
CGRect rect = CGRectMake(0, 0, w, h);
CGContextRef ctx = qt_mac_cg_context(&ret);
qt_mac_drawCGImage(ctx, &rect, image);