Lighthouse minimal: Add support for transparency
authorJanusz Lewandowski <lew21@xtreeme.org>
Thu, 19 May 2011 14:21:39 +0000 (16:21 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Thu, 19 May 2011 17:03:22 +0000 (19:03 +0200)
Merge-request: 1231
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
(cherry picked from commit c15b41056e60abdbb4d835e27a360f01be618a4f)

src/plugins/platforms/minimal/qminimalintegration.cpp
src/plugins/platforms/minimal/qminimalintegration.h

index 3a545e4..44a4eb6 100644 (file)
@@ -50,8 +50,8 @@ QMinimalIntegration::QMinimalIntegration()
     QMinimalScreen *mPrimaryScreen = new QMinimalScreen();
 
     mPrimaryScreen->mGeometry = QRect(0, 0, 240, 320);
-    mPrimaryScreen->mDepth = 16;
-    mPrimaryScreen->mFormat = QImage::Format_RGB16;
+    mPrimaryScreen->mDepth = 32;
+    mPrimaryScreen->mFormat = QImage::Format_ARGB32_Premultiplied;
 
     mScreens.append(mPrimaryScreen);
 }
index 5f93443..993d364 100644 (file)
@@ -51,7 +51,7 @@ class QMinimalScreen : public QPlatformScreen
 {
 public:
     QMinimalScreen()
-        : mDepth(16), mFormat(QImage::Format_RGB16) {}
+        : mDepth(32), mFormat(QImage::Format_ARGB32_Premultiplied) {}
 
     QRect geometry() const { return mGeometry; }
     int depth() const { return mDepth; }