diff --git a/src/modules/Image/encodings/x.c b/src/modules/Image/encodings/x.c index 74685173daab97a6c30a5ecef982d6a167fe1e34..dfc0ef0bc74a9958923098fd366415183f532800 100644 --- a/src/modules/Image/encodings/x.c +++ b/src/modules/Image/encodings/x.c @@ -1,9 +1,9 @@ -/* $Id: x.c,v 1.3 1998/01/08 18:05:05 mirar Exp $ */ +/* $Id: x.c,v 1.4 1998/01/19 23:51:24 grubba Exp $ */ /* **! module Image **! note -**! $Id: x.c,v 1.3 1998/01/08 18:05:05 mirar Exp $ +**! $Id: x.c,v 1.4 1998/01/19 23:51:24 grubba Exp $ **! submodule X **! **! This submodule handles encoding and decoding of @@ -29,7 +29,7 @@ #include <winsock.h> #endif -RCSID("$Id: x.c,v 1.3 1998/01/08 18:05:05 mirar Exp $"); +RCSID("$Id: x.c,v 1.4 1998/01/19 23:51:24 grubba Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -642,14 +642,14 @@ static void x_encode_pseudocolor(INT32 args) get_storage(sp[4-args].u.object,image_colortable_program))) error("Image.X.encode_pseudocolor: illegal argument 4 (expected colortable object)\n"); - if (args>5) + if (args>5) { if (sp[5-args].type!=T_STRING) error("Image.X.encode_pseudocolor: illegal argument 6 (expected string)\n"); else if (sp[5-args].u.string->len!=((vbpp>8)?2:1)<<vbpp) error("Image.X.encode_pseudocolor: illegal argument 6 (expected translate string of length %d, not %d)\n",((vbpp>8)?2:1)<<vbpp,sp[5-args].u.string->len); else translate=sp[5-args].u.string->str; - + } if ( vbpp==8 && bpp==8 && !((bpp*img->xsize)%alignbits) ) x_encode_pseudocolor_1byte_exact(args,img,nct,vbpp,bpp,alignbits, (unsigned char*)translate);