projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981110-2
[rocksndiamonds.git]
/
src
/
image.c
diff --git
a/src/image.c
b/src/image.c
index d75de85516a59de7dd74c26286c30d30fb9a192c..85861dcc56ed6072c0ef3e6884b8eedcfa904530 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-18,7
+18,11
@@
Image *monochrome(Image *cimage)
int bitmap_pixel;
if (BITMAPP(cimage))
int bitmap_pixel;
if (BITMAPP(cimage))
+ {
+ printf("-->ERROR(monochrome)\n");
+
return(NULL);
return(NULL);
+ }
image = newBitImage(cimage->width, cimage->height);
image = newBitImage(cimage->width, cimage->height);
@@
-319,6
+323,8
@@
void compress(Image *image)
free(map);
free(used);
free(map);
free(used);
+
+
#if 0
if (badcount)
printf("%d out-of-range pixels, ", badcount);
#if 0
if (badcount)
printf("%d out-of-range pixels, ", badcount);
@@
-336,6
+342,8
@@
void compress(Image *image)
}
#endif
}
#endif
+
+
image->rgb.compressed= TRUE; /* don't do it again */
}
image->rgb.compressed= TRUE; /* don't do it again */
}