Branch: Tag:

1999-06-19

1999-06-19 20:26:55 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

tNone added + other fixes for MSVC++

Rev: src/modules/Image/colors.c:1.23
Rev: src/modules/Image/colortable.c:1.72
Rev: src/modules/Image/encodings/tga.c:1.8
Rev: src/modules/Image/font.c:1.53
Rev: src/modules/Image/image.c:1.147
Rev: src/modules/Image/layers.c:1.18
Rev: src/modules/Image/orient.c:1.13
Rev: src/modules/Image/polyfill.c:1.30
Rev: src/modules/Image/search.c:1.13
Rev: src/modules/Oracle/oracle.c:1.17
Rev: src/modules/Parser/html.c:1.22
Rev: src/modules/Parser/parser.c:1.4
Rev: src/modules/Perl/perlmod.c:1.8
Rev: src/modules/Pipe/pipe.c:1.33
Rev: src/modules/_Charset/charsetmod.c:1.15
Rev: src/modules/_Charset/iso2022.c:1.10
Rev: src/modules/_Crypto/crypto.c:1.28
Rev: src/modules/_Crypto/des.c:1.14
Rev: src/modules/_Crypto/pipe.c:1.15
Rev: src/modules/_Image_TTF/image_ttf.c:1.17
Rev: src/modules/call_out/call_out.c:1.28
Rev: src/modules/files/efuns.c:1.72
Rev: src/modules/files/socket.c:1.43
Rev: src/modules/spider/dumudp.c:1.44
Rev: src/modules/spider/spider.c:1.82
Rev: src/modules/spider/xml.c:1.8
Rev: src/modules/system/nt.c:1.12
Rev: src/modules/system/system.c:1.72

1: - /* $Id: orient.c,v 1.12 1999/06/18 19:19:28 mirar Exp $ */ + /* $Id: orient.c,v 1.13 1999/06/19 20:24:48 hubbe Exp $ */      /*   **! module Image   **! note - **! $Id: orient.c,v 1.12 1999/06/18 19:19:28 mirar Exp $ + **! $Id: orient.c,v 1.13 1999/06/19 20:24:48 hubbe Exp $   **! class Image   */   
95:   **! output in later versions   */   static INLINE int sq(int a) { return a*a; } - static INLINE int abs(int a) { return (a<0)?-a:a; } + static INLINE int my_abs(int a) { return (a<0)?-a:a; }      static void _image_orient(struct image *source,    struct object *o[4],
132:    d[x+y*xz].CO \    = \    (COLORTYPE) \ -  abs( s[(x+xd)+(y+yd)*xz].CO - s[(x-xd)+(y-yd)*xz].CO ) +  my_abs( s[(x+xd)+(y+yd)*xz].CO - s[(x-xd)+(y-yd)*xz].CO )       /*    sqrt( ( sq( s[(x-xd)+(y-yd)*xz].CO - s[x+y*xz].CO ) + \
240:       int z,w;    -  if (abs(h)>abs(j)) -  if (h) z=-(int)(32*(j/h)+(h>0)*128+64),w=abs(h); +  if (my_abs(h)>my_abs(j)) +  if (h) z=-(int)(32*(j/h)+(h>0)*128+64),w=my_abs(h);    else z=0,w=0;    else -  z=-(int)(-32*(h/j)+(j>0)*128+128),w=abs(j); +  z=-(int)(-32*(h/j)+(j>0)*128+128),w=my_abs(j);       d->r=(COLORTYPE)z;    d->g=255;