diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-03 13:46:04 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2009-08-03 13:49:42 (GMT) |
commit | 28f94e1ef94f595bd8fa71005eaf3daf70731f72 (patch) | |
tree | 83cc51a996bb88928745680a0678d5df1d1f4774 | |
parent | 6130b2137da4c4aa6f12c2fb4e99ef19ac008781 (diff) | |
download | Qt-28f94e1ef94f595bd8fa71005eaf3daf70731f72.zip Qt-28f94e1ef94f595bd8fa71005eaf3daf70731f72.tar.gz Qt-28f94e1ef94f595bd8fa71005eaf3daf70731f72.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
-rw-r--r-- | src/gui/image/qpixmap_mac.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qpixmap_mac.cpp b/src/gui/image/qpixmap_mac.cpp index 45392f1..5568898 100644 --- a/src/gui/image/qpixmap_mac.cpp +++ b/src/gui/image/qpixmap_mac.cpp @@ -1178,6 +1178,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); |