pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:417:    if( opts->background )    {    mapping lopts = ([ "tiled":1, ]);    lopts->image = Image.Image( 32, 32, opts->background );    lopts->alpha = Image.Image( 32, 32, Image.Color.white );    lopts->alpha_value = 1.0;    layers = ({ Image.Layer( lopts ) });    }       foreach(what->layers, object l) -  if((l->flags->visible || opts->draw_all_layers) && l->opacity > 0) +  if((l->flags->visible && l->opacity > 0) || opts->draw_all_layers)    {    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 );    lay->set_offset( l->xoffset/shrink, l->yoffset/shrink );       if(l->mask && l->flags->apply_mask)    {    object a = lay->alpha();