diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-12-01 11:06:13 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-12-01 12:34:16 +0100 |
commit | 389538c2e76698944834526a2f36284cce109afe (patch) | |
tree | 72e6e5bbc9cd03ea6cadae942084cf8ace4322a3 /src/plugins/platforms/cocoa/qcocoabackingstore.mm | |
parent | c5383f2e49b84264747471646f048f22c835ee7a (diff) |
Fix image format use in cocoa plugin
The screen should be opaque. It is used to create the
default pixmap data which should be RGB32 on mac.
The backing store uses premultiplied in the resize but
initializes with non premultiplied. Unify this to all
premultiplied
Change-Id: I7d17d492fcff30b555a768da852ff9be0a9d96aa
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoabackingstore.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoabackingstore.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoabackingstore.mm b/src/plugins/platforms/cocoa/qcocoabackingstore.mm index 5a59fb5c49..0cde19644e 100644 --- a/src/plugins/platforms/cocoa/qcocoabackingstore.mm +++ b/src/plugins/platforms/cocoa/qcocoabackingstore.mm @@ -63,7 +63,7 @@ QCocoaBackingStore::QCocoaBackingStore(QWindow *window) const QRect geo = window->geometry(); NSRect rect = NSMakeRect(geo.x(),geo.y(),geo.width(),geo.height()); - m_image = new QImage(window->geometry().size(),QImage::Format_ARGB32); + m_image = new QImage(window->geometry().size(),QImage::Format_ARGB32_Premultiplied); } QCocoaBackingStore::~QCocoaBackingStore() |