diff --git a/src/modules/Image/blit.c b/src/modules/Image/blit.c index 0f859188c43bf0aa5fed4574940120df74a7af97..2930c504b0fd5575ce0d985f0d39634f424cd2d5 100644 --- a/src/modules/Image/blit.c +++ b/src/modules/Image/blit.c @@ -1,10 +1,10 @@ -/* $Id: blit.c,v 1.20 1997/11/23 06:03:48 per Exp $ */ +/* $Id: blit.c,v 1.21 1997/11/23 07:22:44 per Exp $ */ #include "global.h" /* **! module Image **! note -**! $Id: blit.c,v 1.20 1997/11/23 06:03:48 per Exp $ +**! $Id: blit.c,v 1.21 1997/11/23 07:22:44 per Exp $ **! class image */ @@ -167,7 +167,7 @@ CHRONO("image_blit begin"); THREADS_ALLOW(); if(!moddest && !modsrc) - MEMCPY(dest,src,sizeof(rgb_group*width*lines)); + MEMCPY(dest,src,sizeof(rgb_group)*width*lines); else while (lines--) { diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c index ed9d38d7fd296f4afc9cc72c6f47a21bfafa78f7..3f76f2495312a358b95a168b48cda3e1520e77d5 100644 --- a/src/modules/Image/image.c +++ b/src/modules/Image/image.c @@ -1,9 +1,9 @@ -/* $Id: image.c,v 1.66 1997/11/23 06:03:49 per Exp $ */ +/* $Id: image.c,v 1.67 1997/11/23 07:22:45 per Exp $ */ /* **! module Image **! note -**! $Id: image.c,v 1.66 1997/11/23 06:03:49 per Exp $ +**! $Id: image.c,v 1.67 1997/11/23 07:22:45 per Exp $ **! class image **! **! The main object of the <ref>Image</ref> module, this object @@ -82,7 +82,7 @@ #include "stralloc.h" #include "global.h" -RCSID("$Id: image.c,v 1.66 1997/11/23 06:03:49 per Exp $"); +RCSID("$Id: image.c,v 1.67 1997/11/23 07:22:45 per Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -184,7 +184,7 @@ static void exit_image_struct(struct object *obj) set_rgb_group_alpha(THIS->img[(x)+(y)*THIS->xsize],THIS->rgb,THIS->alpha): \ ((pixel(THIS,x,y)=THIS->rgb),0)) -#define color_equal(A,B) ((A.r == B.r) && (A.g == B.g) && (A.b == B.b)) +#define color_equal(A,B) (((A).r == (B).r) && ((A).g == (B).g) && ((A).b == (B).b)) #define setpixel_test(x,y) \ ((((int)x)<0||((int)y)<0||((int)x)>=(int)THIS->xsize||((int)y)>=(int)THIS->ysize)? \