Skip to content
Commit 8491d432 authored by Luca Carlon's avatar Luca Carlon Committed by Albert Astals Cid
Browse files

Do not assume framebuffer and scalines are always 32-bit aligned

Summary:
When server resolution is 1366x768 and 8-bit depth is requested, this is what I get:

{F6734981}

Looking at the code, it seems that once QImage is initialized from framebuffer data, the used ctor expects the buffer and each scanline to be 32-bit aligned: https://doc.qt.io/Qt-5/qimage.html#QImage-3. Providing the stride explicitly this is what I get:

{F6734992}

Reviewers: uwolfer

Reviewed By: uwolfer

Differential Revision: https://phabricator.kde.org/D20123
parent 18c4a1a2
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