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



commit 790bcd88e13ab8a204c57bac4711b14912f64ddf
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.

 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]