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

version» Context lines:

pike.git/src/modules/Image/blit.c:1: - /* $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   */      #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:160:      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();    if(!moddest && !modsrc) -  MEMCPY(dest,src,sizeof(rgb_group*width*lines)); +  MEMCPY(dest,src,sizeof(rgb_group)*width*lines);    else    while (lines--)    {    MEMCPY(dest,src,sizeof(rgb_group)*width);    dest+=moddest;    src+=modsrc;    }    THREADS_DISALLOW();   CHRONO("image_blit end");