Commit b43c2565 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Create Xcursor sprites with correct format

"ARGB32" is a typo, it needs to be "ARGB32_Premultiplied."

(cherry picked from commit 4061cbc9)
parent ca50c016
......@@ -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));
Supports Markdown
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