Create Xcursor sprites with correct format
"ARGB32" is a typo, it needs to be "ARGB32_Premultiplied."
This commit is contained in:
parent
553b6d39c6
commit
4061cbc97d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue