Branch: Tag:

2006-08-31

2006-08-31 14:02:47 by Martin Nilsson <mani@lysator.liu.se>

Don't crash when drawing alpha boxes all the way to the bottom of the image.

Rev: src/modules/Image/blit.c:1.60

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: blit.c,v 1.59 2005/08/15 17:00:39 grubba Exp $ + || $Id: blit.c,v 1.60 2006/08/31 14:02:47 nilsson Exp $   */      #include "global.h"
172:    {    THREADS_ALLOW();    do { -  for (; foo<=end; foo+=mod) for (x=x1; x<=x2; x++,foo++) +  for (; foo<end; foo+=mod) +  for (x=x1; x<=x2; x++,foo++)    set_rgb_group_alpha(*foo,rgb,this->alpha);    } while(0);    THREADS_DISALLOW();