u32 color;
} colornum_t;
-int compare_colors(const void*_c1, const void*_c2) {
+static int compare_colors(const void*_c1, const void*_c2) {
colornum_t*c1 = (colornum_t*)_c1;
colornum_t*c2 = (colornum_t*)_c2;
return c1->num - c2->num;
{
int filtermode;
int bestsize = 0x7fffffff;
- for(filtermode=0;filtermode<=5;filtermode++) {
-
+ for(filtermode=0;filtermode<=0;filtermode++) {
if(!y && filtermode>=2)
continue; // don't do y direction filters in the first row
fclose(fi);
}
-void writePNG(const char*filename, unsigned char*data, int width, int height)
+EXPORT void writePNG(const char*filename, unsigned char*data, int width, int height)
{
savePNG(filename, data, width, height, 0);
}
-void writePalettePNG(const char*filename, unsigned char*data, int width, int height)
+EXPORT void writePalettePNG(const char*filename, unsigned char*data, int width, int height)
{
savePNG(filename, data, width, height, 256);
}