qt6-bb10/src
Viktor Arvidsson 13c0fb137d Correctly read and write CF_DIB bmp data
When decoding CF_DIB data through the bmp handler we have to
do some assumptions on where the pixel data starts since there's
no file header to get the offset value from. We have to do this
because theres some optional data after the info header that
needs to be skipped over in some cases.

These optional color mask values are now also written when
putting a CF_DIB into the clipboard for maximum compatibility
with other apps on Windows.

This fixes the issue where pasted dibs would be offset by 3 pixels
on Windows.

Fixes: QTBUG-100351
Pick-to: 6.2 6.3
Change-Id: Icafaf82e0aa3476794b671c638455402a0d5206f
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2022-05-16 15:16:36 +02:00
..
3rdparty zlib as static library 2022-04-22 14:34:47 +02:00
android Android A11Y: handle LocationChanged event only for focused element 2022-05-16 15:16:35 +02:00
concurrent Do not highlight the Image Scaling Example anymore in Qt Creator 2022-02-17 18:16:42 +01:00
corelib Add variadic template overloads for QJniObject/Environment methods 2022-05-13 18:13:49 +02:00
dbus Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Correctly read and write CF_DIB bmp data 2022-05-16 15:16:36 +02:00
network QNetworkCacheMetaData: replace qSwap with member-swap 2022-05-11 21:11:42 +02:00
opengl Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
openglwidgets Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
platformsupport Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
plugins Correctly read and write CF_DIB bmp data 2022-05-16 15:16:36 +02:00
printsupport Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
sql QtSql: includemocs 2022-04-28 11:15:03 +02:00
testlib Add missing header files to the module sources 2022-05-12 16:34:25 +02:00
tools Revert introduction of QT_USE_BOOTSTRAP_SOURCE_COPY 2022-05-09 08:32:10 +02:00
widgets Item widgets: clean up treatment of Qt::TextAlignmentRole / CheckStateRole 2022-05-16 09:46:27 +02:00
xml QtXml: replace QLatin1String uses with _L1 or _s 2022-04-28 15:17:23 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00