Branch: Tag:

1999-11-02

1999-11-02 09:46:43 by Per Hedbor <ph@opera.com>

Now it actually works for non-layer images as well

Rev: lib/modules/_Image_PSD.pmod:1.7

216:   array(object) decode_background( mapping data )   {    object img; -  if( data->depth == 1 && -  data->mode != Greyscale ) -  return ({ 0, 0 }); +        if( data->image_data )    img = ___decode_image_data(data->width, data->height,
285:    lopts->alpha_value = 1.0;    }    -  [object img,object alpha] = decode_background( what ); +  object img, alpha; +  if( !what->layers || !sizeof(what->layers)) +  { +  [ img, alpha ] = decode_background( what );    if( img )    {    lopts->image = img;
295:    lopts->alpha = 0;    lopts->alpha_value = 1.0;    } +  }    array layers;    if( lopts->image )    layers = ({ Image.Layer( lopts ) });