Skip to content
Snippets Groups Projects
Commit a4a7b498 authored by Per Hedbor's avatar Per Hedbor
Browse files

Fix

Rev: lib/modules/_Image_XPM.pmod:1.9
parent 9dcbca70
No related branches found
No related tags found
No related merge requests found
......@@ -96,16 +96,16 @@ array ok = ({
"O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", " ",
});
array cmap_f, cmap_t;
array cmap_t;
string encode( object what, mapping|void options )
{
int x,y, q;
array lcmapt;
TI("Encode init");
if(!options) options = ([]);
if(!cmap_f)
if(!cmap_t)
{
cmap_f = allocate( 8100 );
cmap_t = allocate( 8100 );
for(x=0; x<90; x++)
for(y=0; y<90; y++)
......@@ -176,8 +176,6 @@ string encode( object what, mapping|void options )
}
TD(sprintf("Encoded %d rows", sizeof(rows)));
// foreach(rows, string row)
// res += "\""+replace( row, cmap_f, cmap_t )+"\",\n";
res = res+"};\n";
TE("Done");
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment