From d91784d0de31ff06abd74fe3384b2a54ba6f8857 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 20 Jun 2007 11:01:44 +0000 Subject: [PATCH] Deny pixmap creation if screen is not in 16/24 depth. --- eiconman/Wallpaper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eiconman/Wallpaper.cpp b/eiconman/Wallpaper.cpp index d89f8e0..b0e2205 100644 --- a/eiconman/Wallpaper.cpp +++ b/eiconman/Wallpaper.cpp @@ -70,6 +70,9 @@ Pixmap create_xpixmap(Fl_Image* img, XImage* xim, Pixmap pix) { n >>= 1; bshift--; } + } else { + EWARNING("Depth %i not supported, for now\n", fl_visual->depth); + return 0; } // assume display == 16 depth