diff --git a/src/modules/Image/matrix.c b/src/modules/Image/matrix.c index 9a2807944c9ca253c14f78e24b3775186ece385c..0ff96d97a4ad5c4c94c01a938b821b5bce97bbdd 100644 --- a/src/modules/Image/matrix.c +++ b/src/modules/Image/matrix.c @@ -1,9 +1,9 @@ -/* $Id: matrix.c,v 1.14 1998/01/16 22:09:12 grubba Exp $ */ +/* $Id: matrix.c,v 1.15 1998/02/10 13:28:18 mirar Exp $ */ /* **! module Image **! note -**! $Id: matrix.c,v 1.14 1998/01/16 22:09:12 grubba Exp $ +**! $Id: matrix.c,v 1.15 1998/02/10 13:28:18 mirar Exp $ **! class image */ @@ -169,7 +169,9 @@ CHRONO("scale begin"); if (dest->img) { free(dest->img); dest->img=NULL; } - if (!THIS->img || newx<=0 || newy<=0) return; /* no way */ + if (!THIS->img) return; /* no way */ + if (newx<1) newx=1; + if (newy<1) newy=1; new=malloc(newx*newy*sizeof(rgbd_group) +1); if (!new) error("Out of memory!\n"); @@ -293,6 +295,8 @@ void img_scale2(struct image *dest, struct image *source) **! arg int newysize **! new image size in pixels **! +**! note +**! resulting image will be 1x1 pixels, at least */ void image_scale(INT32 args)