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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.23 1997/11/24 15:43:10 mirar Exp $ */ + /* $Id: blit.c,v 1.24 1997/11/24 16:11:55 mirar Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.23 1997/11/24 15:43:10 mirar Exp $ + **! $Id: blit.c,v 1.24 1997/11/24 16:11:55 mirar 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:130:   void img_box_nocheck(INT32 x1,INT32 y1,INT32 x2,INT32 y2)   {    INT32 x,mod;    rgb_group *foo,*end,rgb;    struct image *this;       this=THIS;    rgb=this->rgb;    mod=this->xsize-(x2-x1)-1;    foo=this->img+x1+y1*this->xsize; -  end=this->img+x1+y2*this->xsize; +  end=this->img+x2+y2*this->xsize+1;       THREADS_ALLOW();    if(!this->alpha)    {    if(!mod)    img_clear(foo,rgb,end-foo);    else {    int length = x2-x1+1, xs=this->xsize, y=y2-y1+1;    rgb_group *from = foo;    if(!length) return;