- XImage* ximage = XCreateImage( (Display*)xdisplay, xvisual, depth,
+ int xscreen = DefaultScreen( dpy );
+ Window xroot = RootWindow( dpy, xscreen );
+ Visual* xvisual = DefaultVisual( dpy, xscreen );
+
+ XImage* ximage = XCreateImage( dpy, xvisual, depth,