cursor-sprite/xcursor: Assume pixels are premultiplied
This makes the built in cursors and cursors from Wayland clients look the same. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3859>
This commit is contained in:
parent
aa7e963422
commit
da0fa12f1f
@ -226,9 +226,9 @@ load_from_current_xcursor_image (MetaCursorSpriteXcursor *sprite_xcursor)
|
|||||||
rowstride = width * 4;
|
rowstride = width * 4;
|
||||||
|
|
||||||
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
|
||||||
cogl_format = COGL_PIXEL_FORMAT_BGRA_8888;
|
cogl_format = COGL_PIXEL_FORMAT_BGRA_8888_PRE;
|
||||||
#else
|
#else
|
||||||
cogl_format = COGL_PIXEL_FORMAT_ARGB_8888;
|
cogl_format = COGL_PIXEL_FORMAT_ARGB_8888_PRE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
clutter_backend = clutter_get_default_backend ();
|
clutter_backend = clutter_get_default_backend ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user