mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
iconcache: Support 16bit icons
Mutter current crashes if an application sets a 16-bit color depth icon in its window manager hints. This commit fixes the crash. https://gitlab.gnome.org/GNOME/mutter/merge_requests/710
This commit is contained in:
parent
5b98cc7a3a
commit
b95d7e8276
@ -297,6 +297,7 @@ standard_pict_format_for_depth (int depth)
|
|||||||
return PictStandardA1;
|
return PictStandardA1;
|
||||||
case 24:
|
case 24:
|
||||||
return PictStandardRGB24;
|
return PictStandardRGB24;
|
||||||
|
case 16:
|
||||||
case 32:
|
case 32:
|
||||||
return PictStandardARGB32;
|
return PictStandardARGB32;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user