pike.git / src / modules / Image / blit.c

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.50 2002/04/10 21:27:10 stewa Exp $ */ + /* $Id: blit.c,v 1.51 2002/05/11 00:27:02 nilsson Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.50 2002/04/10 21:27:10 stewa Exp $ + **! $Id: blit.c,v 1.51 2002/05/11 00:27:02 nilsson Exp $   **! class Image   */      #include <math.h>   #include <ctype.h>      #include "stralloc.h"   #include "global.h"   #include "pike_macros.h"   #include "object.h"
pike.git/src/modules/Image/blit.c:25:   #include "image.h"   #include "image_machine.h"      #ifdef ASSEMBLY_OK   #include "assembly.h"   #endif      /* This must be included last! */   #include "module_magic.h"    + #define sp Pike_sp +    extern struct program *image_program;   #ifdef THIS   #undef THIS /* Needed for NT */   #endif   #define THIS ((struct image *)(Pike_fp->current_storage))   #define THISOBJ (Pike_fp->current_object)      #define absdiff(a,b) ((a)<(b)?((b)-(a)):((a)-(b)))      #if 0
pike.git/src/modules/Image/blit.c:634:   {    if (x1>x2) x1^=x2,x2^=x1,x1^=x2;    if (y1>y2) y1^=y2,y2^=y1,y1^=y2;    if (x2 >= THIS->xsize) x2 = THIS->xsize-1;    if (y2 >= THIS->ysize) y2 = THIS->ysize-1;    if (x2<0||y2<0||x1>=THIS->xsize||y1>=THIS->ysize) return;    if (x1<0) x1 = 0;    if (y1<0) y1 = 0;    img_box_nocheck(MAXIMUM(x1,0),MAXIMUM(y1,0),MINIMUM(x2,THIS->xsize-1),MINIMUM(y2,THIS->ysize-1));   } -  -  +