diff options
author | Viktor Arvidsson <viktor.arvidss@gmail.com> | 2022-04-10 02:57:06 +0200 |
---|---|---|
committer | Viktor Arvidsson <viktor.arvidss@gmail.com> | 2022-05-16 15:16:36 +0200 |
commit | 13c0fb137d95cffd36a2ffee97cf015702df3748 (patch) | |
tree | 866e318ceb6396d88470dec0c5cb1b0b685692c2 /tests/manual/qcursor/grab_override/main.cpp | |
parent | 0613146d210e494bf98e0e4de97e03fc5021736e (diff) | |
download | qtbase-13c0fb137d95cffd36a2ffee97cf015702df3748.tar.gz |
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>
Diffstat (limited to 'tests/manual/qcursor/grab_override/main.cpp')
0 files changed, 0 insertions, 0 deletions