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:
Ray Strode 2019-08-01 15:20:22 -04:00
parent 5b98cc7a3a
commit b95d7e8276

View File

@ -297,6 +297,7 @@ standard_pict_format_for_depth (int depth)
return PictStandardA1;
case 24:
return PictStandardRGB24;
case 16:
case 32:
return PictStandardARGB32;
default: