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
Please register or sign in to comment