Commit 2a13a292 authored by Bhushan Shah's avatar Bhushan Shah 📱

[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
parent 8729ff25
......@@ -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 &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment