Branch: Tag:

2001-03-27

2001-03-27 12:30:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

MAX() -> MAXIMUM()
MIN() -> MINIMUM()
Should now compile with cl/ecl/icl again.

Rev: src/modules/Image/layers.c:1.65

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.64 2001/03/26 21:15:22 mirar Exp $ + **! $Id: layers.c,v 1.65 2001/03/27 12:30:22 grubba Exp $   **! class Layer   **! see also: layers   **!
216:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.64 2001/03/26 21:15:22 mirar Exp $"); + RCSID("$Id: layers.c,v 1.65 2001/03/27 12:30:22 grubba Exp $");      #include "image_machine.h"   
804:       if (r > g)    { -  max = MAX (r, b); -  min = MIN (g, b); +  max = MAXIMUM(r, b); +  min = MINIMUM(g, b);    }    else    { -  max = MAX (g, b); -  min = MIN (r, b); +  max = MAXIMUM(g, b); +  min = MINIMUM(r, b);    }       l = (max + min) / 2.0;