[mutter/wip/fix-16bbp-icon-crash] iconcache: Support 16bit icons



commit b95d7e8276e31a3414ec4d5ee13191c3f253fa1c
Author: Ray Strode <rstrode redhat com>
Date:   Thu Aug 1 15:20:22 2019 -0400

    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

 src/x11/iconcache.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/x11/iconcache.c b/src/x11/iconcache.c
index 15d72da65..69d4d14f3 100644
--- a/src/x11/iconcache.c
+++ b/src/x11/iconcache.c
@@ -297,6 +297,7 @@ standard_pict_format_for_depth (int depth)
       return PictStandardA1;
     case 24:
       return PictStandardRGB24;
+    case 16:
     case 32:
       return PictStandardARGB32;
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]