X-Git-Url: http://git.imager.perl.org/imager.git/blobdiff_plain/92bda6321b472bb18726d950da8833b950abf4ee..e1c0692925:/DynTest/linstretch.c diff --git a/DynTest/linstretch.c b/DynTest/linstretch.c index 7d2d8faa..9f240ef5 100644 --- a/DynTest/linstretch.c +++ b/DynTest/linstretch.c @@ -18,8 +18,8 @@ void null_plug(void *ptr) { } */ -unsigned char static +unsigned char saturate(int in) { if (in>255) { return 255; } else if (in>0) return in; @@ -29,14 +29,11 @@ saturate(int in) { void lin_stretch(i_img *im, int a, int b) { i_color rcolor; - int i,bytes,x,y; - int info[4]; + i_img_dim x,y; + int i; /* fprintf(stderr,"parameters: (im 0x%x,a %d,b %d)\n",im,a,b);*/ - bytes=im->bytes; - - i_img_info(im,info); for(y=0;yysize;y++) for(x=0;xxsize;x++) { i_gpix(im,x,y,&rcolor);