From 3ea8f1d1f83962cbf7fb3542935d18029dacb2e5 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Mon, 9 Jun 2008 15:07:11 +0000 Subject: [PATCH] Fixed conversion for 32bit images --- eiconman/Wallpaper.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eiconman/Wallpaper.cpp b/eiconman/Wallpaper.cpp index 47681fa..ebe4de5 100644 --- a/eiconman/Wallpaper.cpp +++ b/eiconman/Wallpaper.cpp @@ -138,10 +138,14 @@ Pixmap create_xpixmap(Fl_Image* img, XImage*& xim, Pixmap pix, int wp_w, int wp_ *destptr++ = (tmp & 0xff000000) >> 24; *destptr++ = (tmp & 0xff0000) >> 16; *destptr++ = (tmp & 0xff00) >> 8; - *destptr++ = (tmp & 0xff); + + // FIXME: check this somehow ! + if(id == 4) + *destptr++ = (tmp & 0xff); } else { // little endian - *destptr++ = (tmp & 0xff); + if(id == 4) + *destptr++ = (tmp & 0xff); *destptr++ = (tmp & 0xff00) >> 8; *destptr++ = (tmp & 0xff0000) >> 16; *destptr++ = (tmp & 0xff000000) >> 24;