Branch: Tag:

1998-04-24

1998-04-24 13:51:03 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

i don't wan't unneccesary braces in if-statements!

Rev: src/modules/Image/blit.c:1.29
Rev: src/modules/Image/colortable.c:1.45
Rev: src/modules/Image/font.c:1.35
Rev: src/modules/Image/matrix.c:1.17
Rev: src/modules/Image/polyfill.c:1.26
Rev: src/modules/Image/testsuite.in:1.11
Rev: src/modules/Image/togif.c:1.32
Rev: src/modules/Image/x.c:1.19

1: - /* $Id: blit.c,v 1.28 1998/04/20 18:53:27 grubba Exp $ */ + /* $Id: blit.c,v 1.29 1998/04/24 13:46:04 mirar Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.28 1998/04/20 18:53:27 grubba Exp $ + **! $Id: blit.c,v 1.29 1998/04/24 13:46:04 mirar Exp $   **! class image   */   
91:    img->rgb.r=(unsigned char)sp[-args+args_start].u.integer;    img->rgb.g=(unsigned char)sp[1-args+args_start].u.integer;    img->rgb.b=(unsigned char)sp[2-args+args_start].u.integer; -  if (args-args_start>=4) { +  if (args-args_start>=4)    if (sp[3-args+args_start].type!=T_INT)    error("Illegal alpha argument to %s\n",name);    else    img->alpha=sp[3-args+args_start].u.integer; -  } else +  else    img->alpha=0;   }   
390:    for (ix=0; ix<mx; ix++)    {    x = ix + x1; y = iy + y1; -  if(x>=0 && y>=0 && x<xs && y<ys) { +  if(x>=0 && y>=0 && x<xs && y<ys)    if(this->alpha)    set_rgb_group_alpha(this->img[x+y*xs],*(source),this->alpha);    else    this->img[x+y*xs]=*(source); -  } +     source++;    }    THREADS_DISALLOW();