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

292:    lay->set_misc_value( "image_guides", what->resources->guides );       l->image = 0; l->alpha = 0; +     if( l->opacity != 255 ) -  lay->set_alpha_value( 1.0 - l->opacity / 255.0 ); +  { +  float lo = 1.0 - l->opacity / 255.0; +  if( lay->alpha() ) +  lay->set_image( lay->image(), lay->alpha()*lo ); +  else +  lay->set_image( lay->image(), Image.Image( lay->xsize(), +  lay->yszize(), +  (int)(255*lo), +  (int)(255*lo), +  (int)(255*lo))); +  }    lay->set_offset( l->xoffset, l->yoffset );    layers += ({ lay });    }