X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=inline;f=src%2Fimage.c;fp=src%2Fimage.c;h=85861dcc56ed6072c0ef3e6884b8eedcfa904530;hb=333896e44bae70515b2d82877dd14e7e28338977;hp=d75de85516a59de7dd74c26286c30d30fb9a192c;hpb=9e0e44d9596ef874ec5d1e1bd749748c3a9e93f0;p=rocksndiamonds.git diff --git a/src/image.c b/src/image.c index d75de855..85861dcc 100644 --- a/src/image.c +++ b/src/image.c @@ -18,7 +18,11 @@ Image *monochrome(Image *cimage) int bitmap_pixel; if (BITMAPP(cimage)) + { + printf("-->ERROR(monochrome)\n"); + return(NULL); + } image = newBitImage(cimage->width, cimage->height); @@ -319,6 +323,8 @@ void compress(Image *image) free(map); free(used); + + #if 0 if (badcount) printf("%d out-of-range pixels, ", badcount); @@ -336,6 +342,8 @@ void compress(Image *image) } #endif + + image->rgb.compressed= TRUE; /* don't do it again */ }