mirror of https://github.com/GNOME/gimp.git
Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/base/lut-funcs.c (equalize_lut_fuct): Don't equalize the alpha channel. Fixes bug #510210. svn path=/trunk/; revision=24648
This commit is contained in:
parent
30907dbd76
commit
ea9d46fa71
|
@ -1,3 +1,8 @@
|
|||
2008-01-18 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||
|
||||
* app/base/lut-funcs.c (equalize_lut_fuct): Don't
|
||||
equalize the alpha channel. Fixes bug #510210.
|
||||
|
||||
2008-01-18 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gegl/Makefile.am
|
||||
|
|
|
@ -293,13 +293,17 @@ typedef struct
|
|||
|
||||
static gfloat
|
||||
equalize_lut_func (hist_lut_struct *hlut,
|
||||
gint n_channels,
|
||||
gint nchannels,
|
||||
gint channel,
|
||||
gfloat value)
|
||||
{
|
||||
gint i = 0;
|
||||
gint j;
|
||||
|
||||
/* don't equalize the alpha channel */
|
||||
if ((nchannels == 2 || nchannels == 4) && channel == nchannels - 1)
|
||||
return value;
|
||||
|
||||
j = (gint) (value * 255.0 + 0.5);
|
||||
|
||||
while (hlut->part[channel][i + 1] <= j)
|
||||
|
|
Loading…
Reference in New Issue