From: <enl...@li...> - 2002-12-30 12:55:49
|
Enlightenment CVS committal Author : azundris Project : e17 Module : libs/imlib2_loaders Dir : e17/libs/imlib2_loaders/src Modified Files: loader_xcf.c Log Message: XCF-loader would spew hundreds of identical complaints on unsupported formats, delaying the calling application by up to a minute. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/imlib2_loaders/src/loader_xcf.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- loader_xcf.c 10 May 2002 20:08:26 -0000 1.16 +++ loader_xcf.c 30 Dec 2002 12:55:47 -0000 1.17 @@ -787,7 +787,7 @@ DATA8* ptr; DATA8* ptr2; Tile* t; - + int warned=0; if (tiles) { @@ -844,8 +844,9 @@ A_VAL(ptr) = *(ptr2+1); } /* else use colors themselves */ - else + else if(warned==0) { + warned++; fprintf (stderr, "There's nothing to see here. 2 bpp without colormap not implemented yet.\n"); } break; @@ -854,7 +855,11 @@ { if (image->cmap) { - fprintf (stderr, "There's nothing to see here. 3 bpp with colormap not implemented yet.\n"); + if(warned==0) + { + warned++; + fprintf (stderr, "There's nothing to see here. 3 bpp with colormap not implemented yet.\n"); + } } else { |