Enlightenment CVS committal Author : kwo Project : e17 Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib Modified Files: grab.c Log Message: Fix colormap when grabbing 8 bit depth pixmaps. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/grab.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- grab.c 28 Jul 2005 04:15:11 -0000 1.2 +++ grab.c 13 Jan 2006 21:27:36 -0000 1.3 @@ -736,14 +736,19 @@ } else if (xatt.depth <= 8) { - if ((!is_pixmap) && (!cm)) + if (!cm) { - cm = xatt.colormap; - if (cm == None) - cm = ratt.colormap; + if (is_pixmap) + { + cm = DefaultColormap(d, DefaultScreen(d)); + } + else + { + cm = xatt.colormap; + if (cm == None) + cm = ratt.colormap; + } } - else - cm = ratt.colormap; for (i = 0; i < (1 << xatt.depth); i++) { ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs