pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:447:    object a2 =l->mask->image_data->get_layer(shrink)->image();    int x = lay->image()->xsize( );    int y = lay->image()->ysize( );    if( a2->xsize() != x || a2->ysize() != y )    a2 = a2->copy( 0,0, x, y, 255,255,255 );       if(a)    a *= l->mask->image_data->get_layer(shrink)->image();    else    a = a2; -  lay->set_alpha( a ); +  lay->set_image( lay->image(), a );    }    layers += ({ lay });          if(!concat) /* No reason to set these flags if they are just    going to be ignored. */    {    /* Not really layer related */    lay->set_misc_value( "image_xres", l->parent->xres/shrink );    lay->set_misc_value( "image_yres", l->parent->yres/shrink );