Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
4061cbc9
Commit
4061cbc9
authored
Feb 22, 2021
by
Vlad Zahorodnii
Browse files
Create Xcursor sprites with correct format
"ARGB32" is a typo, it needs to be "ARGB32_Premultiplied."
parent
553b6d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/xcursortheme.cpp
View file @
4061cbc9
...
...
@@ -82,7 +82,7 @@ static void load_callback(XcursorImages *images, void *data)
const
QPoint
hotspot
(
nativeCursorImage
->
xhot
,
nativeCursorImage
->
yhot
);
const
std
::
chrono
::
milliseconds
delay
(
nativeCursorImage
->
delay
);
QImage
data
(
nativeCursorImage
->
width
,
nativeCursorImage
->
height
,
QImage
::
Format_ARGB32
);
QImage
data
(
nativeCursorImage
->
width
,
nativeCursorImage
->
height
,
QImage
::
Format_ARGB32
_Premultiplied
);
memcpy
(
data
.
bits
(),
nativeCursorImage
->
pixels
,
data
.
sizeInBytes
());
sprites
.
append
(
KXcursorSprite
(
data
,
hotspot
/
themePrivate
->
devicePixelRatio
,
delay
));
...
...
Vlad Zahorodnii
@vladz
mentioned in commit
b43c2565
·
Feb 22, 2021
mentioned in commit
b43c2565
mentioned in commit b43c25650932feb58b9268190a05e441fb6fe444
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment