From 4a1607f99e74e28d5485a7649e1ba4b9f8058d74 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Tue, 18 Mar 1997 18:36:23 +0100 Subject: [PATCH] ... Rev: src/modules/Image/image.c:1.9 Rev: src/modules/Image/togif.c:1.5 --- src/modules/Image/image.c | 6 ++---- src/modules/Image/togif.c | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c index 62f9aa543b..2ee9242ba2 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 e366e21ddb..8a816b8419 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) { -- GitLab