[platforms/fbdev] Support for RGBA8888 color format

Reviewers: #kwin, graesslin

Reviewed By: #kwin, graesslin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D6798
This commit is contained in:
Bhushan Shah 2017-10-23 13:44:16 +05:30
parent 8729ff25c9
commit 2a13a292ea

View file

@ -194,6 +194,17 @@ void FramebufferBackend::initImageFormat()
m_red.offset == 16) {
qCDebug(KWIN_FB) << "Framebuffer format is RGB32";
m_imageFormat = QImage::Format_RGB32;
} else if (m_bitsPerPixel == 32 &&
m_red.length == 8 &&
m_green.length == 8 &&
m_blue.length == 8 &&
m_alpha.length == 8 &&
m_red.offset == 0 &&
m_green.offset == 8 &&
m_blue.offset == 16 &&
m_alpha.offset == 24) {
qCDebug(KWIN_FB) << "Framebuffer format is RGBA8888";
m_imageFormat = QImage::Format_RGBA8888;
} else if (m_bitsPerPixel == 24 &&
m_red.length == 8 &&
m_green.length == 8 &&