ASImage *scaled_im = scale_asimage (asv, original_asim, w, h, ASA_XImage, 0, ASIMAGE_QUALITY_DEFAULT);
if (scaled_im)
{
- pixmap = AFTERIMAGE_DPY_OP (asimage2pixmap(asv, display->root, scaled_im, gc, True));
+ pixmap = asimage2pixmap(asv, display->root, scaled_im, gc, True);
destroy_asimage (&scaled_im);
}
}
}
if (original_asim)
{
- bgPixmap.pixmap = AFTERIMAGE_DPY_OP (asimage2pixmap (asv, display->root, original_asim, NULL, True));
+ bgPixmap.pixmap = asimage2pixmap (asv, display->root, original_asim, NULL, True);
xpmAttr.width = original_asim->width ;
xpmAttr.height = original_asim->height ;
}
ARGB32 tint ;
unsigned int pmap_w = 0, pmap_h = 0;
- if (get_drawable_size( rootpixmap, &pmap_w, &pmap_h ))
+ if (get_dpy_drawable_size( dpy, rootpixmap, &pmap_w, &pmap_h ))
{
int root_x = 0, root_y = 0;
shade.tintColor.red = shade.tintColor.green = shade.tintColor.blue = 0xFFFF;
tint = shading2tint32( &shade );
gc = XCreateGC (dpy, vt, 0UL, &gcvalue);
- if (GetWinPosition (parent[0], &root_x, &root_y) )
+ if (get_dpy_window_position(dpy, display->root, parent[0], NULL, NULL, &root_x, &root_y))
{
ASImageLayer *layers = create_image_layers( 2 );
ASImage *merged_im = NULL;
MAKE_ROOTPMAP_GEOM(x,w,width);
MAKE_ROOTPMAP_GEOM(y,h,height);
- layers[0].im = AFTERIMAGE_DPY_OP (pixmap2asimage (asv, rootpixmap, back_x, back_y, back_w, back_h, AllPlanes, ASA_ASImage, 100));
+ layers[0].im = pixmap2asimage (asv, rootpixmap, back_x, back_y, back_w, back_h, AllPlanes, ASA_ASImage, 100);
layers[0].clip_x = (back_w == pmap_w)?root_x:0;
layers[0].clip_y = (back_h == pmap_h)?root_y:0;
layers[0].clip_width = szHint.width;
destroy_asimage( &(layers[0].im) );
if (merged_im != NULL)
{
- tmp_pmap = AFTERIMAGE_DPY_OP (asimage2pixmap (asv, DefaultRootWindow(dpy), merged_im, gc, True));
+ tmp_pmap = asimage2pixmap (asv, DefaultRootWindow(dpy), merged_im, gc, True);
destroy_asimage( &merged_im );
}
free( layers );