XImage *xi = XReadScreen(disp, d, x, y, width, height,
XImage *xi;  xi = xreadscreen(disp, d, x, y, width, height,
XImage *XGetSubImage_wr(Display *disp, Drawable d, int x, int y,    unsigned int width, unsigned int height, unsigned long plane_mask,    int format, XImage *dest_image, int dest_x, int dest_y) {	ADJUST_ROOTSHIFT#ifdef SOLARIS	if (overlay && dest_x == 0 && dest_y == 0) {		size_t size = dest_image->height * dest_image->bytes_per_line;		XImage *xi = XReadScreen(disp, d, x, y, width, height,		    (Bool) overlay_cursor);		/*		 * There is extra overhead from memcpy and free...		 * this is not like the real XGetSubImage().  We hope		 * this significant overhead is still small compared to		 * the time to retrieve the fb data.		 */		memcpy(dest_image->data, xi->data, size);		XDestroyImage(xi);		return (dest_image);	}#endif	return XGetSubImage(disp, d, x, y, width, height, plane_mask,	    format, dest_image, dest_x, dest_y);}