pike.git / lib / modules / _Image_XPM.pmod

version» Context lines:

pike.git/lib/modules/_Image_XPM.pmod:2:   {    mapping res = ([]);    for(int i=0; i<sizeof(color); i+=2 )    if(lower_case(color[i+1]) != "none")    res[color[i]] = Colors.parse_color( color[i+1] );    return res;   }      static array find_color( mapping in, string space )   { -  return in&&in[space||"c"]; +  return in && (in[space||"s"] || in->c || in->g || in->g4 || in->m);   }      mapping _decode( string what, void|mapping opts )   {    array data;    mapping retopts = ([ ]);    if(!opts)    opts = ([]);    if(sscanf(what, "%*s/*%*[ \t]XPM%*[ \t]*/%*[ \t]\n%s", what) != 5)    error("This is not a XPM image (1)\n");