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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $Id: blit.c,v 1.11 1997/09/01 01:35:32 per Exp $ */ + /* $Id: blit.c,v 1.12 1997/09/05 22:18:42 per Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.11 1997/09/01 01:35:32 per Exp $<br> + **! $Id: blit.c,v 1.12 1997/09/05 22:18:42 per Exp $<br>   **! 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:129:    else    for (; foo<=end; foo+=mod) for (x=x1; x<=x2; x++,foo++)    set_rgb_group_alpha(*foo,rgb,this->alpha);    THREADS_DISALLOW();   }         void img_blit(rgb_group *dest,rgb_group *src,INT32 width,    INT32 lines,INT32 moddest,INT32 modsrc)   { +  if(width <= 0 || lines <= 0) +  return;   CHRONO("image_blit begin");       THREADS_ALLOW();    while (lines--)    {    MEMCPY(dest,src,sizeof(rgb_group)*width);    dest+=moddest;    src+=modsrc;    }    THREADS_DISALLOW();