diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c index 62f9aa543b43e8711dfe1d870eef69ecf8563f3f..2ee9242ba26fe174b26a1b52ff8cd243db797d2b 100644 --- a/src/modules/Image/image.c +++ b/src/modules/Image/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.8 1997/03/18 17:23:12 mirar Exp $ */ +/* $Id: image.c,v 1.9 1997/03/18 17:36:19 mirar Exp $ */ #include "global.h" @@ -7,7 +7,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: image.c,v 1.8 1997/03/18 17:23:12 mirar Exp $"); +RCSID("$Id: image.c,v 1.9 1997/03/18 17:36:19 mirar Exp $"); #include "types.h" #include "pike_macros.h" #include "object.h" @@ -1716,8 +1716,6 @@ static void image_to8bit_fs(INT32 args) error("illegal argument to image->map_fs()\n"); -fprintf(stderr,"c\n"); - res=(int*)xalloc(sizeof(int)*THIS->xsize); errb=(rgbl_group*)xalloc(sizeof(rgbl_group)*THIS->xsize); diff --git a/src/modules/Image/togif.c b/src/modules/Image/togif.c index e366e21ddbdb7f8e213363daf0d8aa38ad16e995..8a816b8419d9f56eda5d4a6e9c1a360d40a6837d 100644 --- a/src/modules/Image/togif.c +++ b/src/modules/Image/togif.c @@ -4,7 +4,7 @@ togif Pontus Hagland, law@infovav.se -$Id: togif.c,v 1.4 1997/03/18 17:30:54 mirar Exp $ +$Id: togif.c,v 1.5 1997/03/18 17:36:23 mirar Exp $ */ @@ -626,7 +626,7 @@ static void img_gif_add(INT32 args,int fs,int lm) struct colortable *ct=NULL; dynamic_buffer buf; int colors,bpp; - int closest; + int closest=0; CHRONO("gif add init"); @@ -650,10 +650,7 @@ CHRONO("gif add init"); closest=1; } else if (args>3 && sp[2-args].type==T_INT) - { ct=colortable_quant(THIS,max(256,min(2,sp[2-args].u.integer))); - closest=0; - } if (args>2+!!ct) {