Commit 4061cbc9 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."
parent 553b6d39
...@@ -82,7 +82,7 @@ static void load_callback(XcursorImages *images, void *data) ...@@ -82,7 +82,7 @@ static void load_callback(XcursorImages *images, void *data)
const QPoint hotspot(nativeCursorImage->xhot, nativeCursorImage->yhot); const QPoint hotspot(nativeCursorImage->xhot, nativeCursorImage->yhot);
const std::chrono::milliseconds delay(nativeCursorImage->delay); 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()); memcpy(data.bits(), nativeCursorImage->pixels, data.sizeInBytes());
sprites.append(KXcursorSprite(data, hotspot / themePrivate->devicePixelRatio, delay)); 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