Branch: Tag:

2000-12-16

2000-12-16 04:07:43 by Per Hedbor <ph@opera.com>

->alpha_value in layers is broken, and I do not have the energy to fix it right now.

Rev: lib/modules/_Image_PSD.pmod:1.13
Rev: lib/modules/_Image_XCF.pmod:1.17

429:    Image.Layer lay = l->image->get_layer( shrink );    lay->set_mode( translate_mode( l->mode ) );    if( l->opacity != 255 ) -  lay->set_alpha_value( l->opacity / 255.0 ); +  { +  if( lay->alpha() ) +  lay->set_image( lay->image(), lay->alpha()*(l->opacity/255.0) ); +  else +  lay->set_image( lay->image(), Image.Image( lay->xsize(), +  lay->yszize(), +  l->opacity, +  l->opacity, +  l->opacity)); +  }    lay->set_offset( l->xoffset/shrink, l->yoffset/shrink );       if(l->mask && l->flags->apply_mask)