Lighthouse minimal: Add support for transparency
Merge-request: 1231 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> (cherry picked from commit c15b41056e60abdbb4d835e27a360f01be618a4f)
This commit is contained in:
parent
852e9766ed
commit
463e31fd58
@ -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);
|
||||
}
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user