Branch: Tag:

2000-10-21

2000-10-21 18:03:32 by Per Hedbor <ph@opera.com>

Bugfix for transparency

Rev: lib/modules/_Image_PSD.pmod:1.10

107:    else    lays += (({ Image.Layer( ([    "image":___decode_image_channel(l->width, l->height, c->data), -  "alpha_value":1.0, + // "alpha_value":1.0,    "mode":mode,    ]) )    }));
310:    {    Image.Layer lay = Image.Layer( l->image, l->alpha, m );    l->image = 0; l->alpha = 0; -  lay->set_alpha_value( l->opacity / 255.0 ); +  if( l->opacity != 255 ) +  lay->set_alpha_value( 1.0 - l->opacity / 255.0 );    lay->set_offset( l->xoffset, l->yoffset );    layers += ({ lay });    }