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:
@ -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>
|
2008-01-18 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/gegl/Makefile.am
|
* app/gegl/Makefile.am
|
||||||
|
@ -293,13 +293,17 @@ typedef struct
|
|||||||
|
|
||||||
static gfloat
|
static gfloat
|
||||||
equalize_lut_func (hist_lut_struct *hlut,
|
equalize_lut_func (hist_lut_struct *hlut,
|
||||||
gint n_channels,
|
gint nchannels,
|
||||||
gint channel,
|
gint channel,
|
||||||
gfloat value)
|
gfloat value)
|
||||||
{
|
{
|
||||||
gint i = 0;
|
gint i = 0;
|
||||||
gint j;
|
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);
|
j = (gint) (value * 255.0 + 0.5);
|
||||||
|
|
||||||
while (hlut->part[channel][i + 1] <= j)
|
while (hlut->part[channel][i + 1] <= j)
|
||||||
|
Reference in New Issue
Block a user