Branch: Tag:

2015-04-18

2015-04-18 08:48:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Image: Removed some dead code in crop().

Fixes [CID 742485].

240:       if( ! (( x2 < 0) || (y2 < 0) || (x1>=img->xsize) || (y1>=img->ysize))) {    -  if (x1<0) x1=0; else if (x1>=img->xsize) x1=img->xsize-1; -  if (y1<0) y1=0; else if (y1>=img->ysize) y1=img->ysize-1; -  if (x2<0) x2=0; else if (x2>=img->xsize) x2=img->xsize-1; -  if (y2<0) y2=0; else if (y2>=img->ysize) y2=img->ysize-1; +  if (x1<0) x1=0; +  if (y1<0) y1=0; +  if (x2>=img->xsize) x2=img->xsize-1; +  if (y2>=img->ysize) y2=img->ysize-1;       img_blit(new+xp+yp*dest->xsize,    img->img+xs+(img->xsize)*ys,