// Get translated clip
makeClip(dstX, dstY, width, height, clip);
g2d.setXClip(clip, g2d.imageGC);
X11 x11 = X11.getInstance();
x11.XCopyArea(
g2d.display,
xSrcSurf.g2d.drawable, g2d.drawable,
g2d.imageGC,
srcX, srcY,
width, height,
dstX, dstY
);
x11.XFlush(g2d.display);
g2d.resetXClip(g2d.imageGC);
g2d.setImageGCFunction(X11Defs.GXcopy);
} else if (srcSurf.getSurfaceType() == BufferedImage.TYPE_CUSTOM) {
// source is custom image, slow blit