mirror of https://github.com/GNOME/gimp.git
Added ALPHA_LUT to types accecpted by levels PDB. Patch by TomR.
ChangeLog tools/pdbgen/pdb/color.pdb app/color_cmds.c
This commit is contained in:
parent
8780254389
commit
ec469b105f
|
@ -1,3 +1,10 @@
|
|||
2000-10-18 Seth Burgess <sjburges@gimp.org>
|
||||
|
||||
*app/color_cmds.c
|
||||
*tools/pdbgen/pdb/color.pdb: patch from Tom Rathborne
|
||||
<tomr@aceldama.com> to enable ALPHA_LUT on the levels PDB
|
||||
interface.
|
||||
|
||||
2000-10-18 Daniel Egger <egger@suse.de>
|
||||
|
||||
* app/resize.c: Add a patch from
|
||||
|
|
|
@ -182,7 +182,7 @@ levels_invoker (Argument *args)
|
|||
success = FALSE;
|
||||
|
||||
channel = args[1].value.pdb_int;
|
||||
if (channel < VALUE_LUT || channel > BLUE_LUT)
|
||||
if (channel < VALUE_LUT || channel > ALPHA_LUT)
|
||||
success = FALSE;
|
||||
|
||||
low_inputv = args[2].value.pdb_int;
|
||||
|
@ -208,7 +208,9 @@ levels_invoker (Argument *args)
|
|||
if (success)
|
||||
{
|
||||
if (gimp_drawable_is_indexed (drawable) ||
|
||||
(gimp_drawable_is_gray (drawable) && channel != GRAY_LUT))
|
||||
(!gimp_drawable_has_alpha (drawable) && channel == ALPHA_LUT) ||
|
||||
(gimp_drawable_is_gray (drawable) && channel != GRAY_LUT
|
||||
&& channel != ALPHA_LUT))
|
||||
success = FALSE;
|
||||
else
|
||||
{
|
||||
|
@ -262,7 +264,7 @@ static ProcArg levels_inargs[] =
|
|||
{
|
||||
PDB_INT32,
|
||||
"channel",
|
||||
"The channel to modify: { VALUE_LUT (0), RED_LUT (1), GREEN_LUT (2), BLUE_LUT (3) }"
|
||||
"The channel to modify: { VALUE_LUT (0), RED_LUT (1), GREEN_LUT (2), BLUE_LUT (3), ALPHA_LUT (4) }"
|
||||
},
|
||||
{
|
||||
PDB_INT32,
|
||||
|
|
|
@ -105,7 +105,6 @@ HELP
|
|||
&drawable_arg,
|
||||
&channel_arg
|
||||
);
|
||||
$inargs[1]->{type} .= ' (no ALPHA_LUT)';
|
||||
|
||||
foreach $arg (qw(input output)) {
|
||||
foreach (qw(low high)) {
|
||||
|
@ -125,7 +124,9 @@ HELP
|
|||
code => <<'CODE'
|
||||
{
|
||||
if (gimp_drawable_is_indexed (drawable) ||
|
||||
(gimp_drawable_is_gray (drawable) && channel != GRAY_LUT))
|
||||
(!gimp_drawable_has_alpha (drawable) && channel == ALPHA_LUT) ||
|
||||
(gimp_drawable_is_gray (drawable) && channel != GRAY_LUT
|
||||
&& channel != ALPHA_LUT))
|
||||
success = FALSE;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue