pike.git / lib / modules / _Image_PSD.pmod

version» Context lines:

pike.git/lib/modules/_Image_PSD.pmod:268:    }    }    array layers;    if( lopts->image )    layers = ({ Image.Layer( lopts ) });    else    layers = ({});       foreach(reverse(what->layers), object l)    { -  string m; -  if( (!(l->flags & LAYER_FLAG_INVISIBLE) && l->opacity) -  || opts->draw_all_layers ) +  string m = translate_mode( l->mode ); +  if( m && +  ((!(l->flags & LAYER_FLAG_INVISIBLE) && l->opacity) +  || opts->draw_all_layers ))    {    Image.Layer lay = Image.Layer( l->image, l->alpha, m );    l->image = 0; l->alpha = 0;    lay->set_misc_value( "visible", !(l->flags & LAYER_FLAG_INVISIBLE) );    lay->set_misc_value( "name", l->name );    if( lay->alpha() )    lay->set_image( lay->image(), lay->alpha()->color(l->opacity,    l->opacity,    l->opacity ) );    else