3 //============================================================================
7 // MIT Shared Memory Extension for X
9 //============================================================================
13 #include <X11/Xutil.h>
16 #include <X11/extensions/XShm.h>
19 // Not in any Linux header file...
21 //extern int XShmQueryExtension( Display* );
22 extern int XShmGetEventBase( Display* );
30 static int query( Display* );
32 static int completionType( Display* dis )
34 return XShmGetEventBase( dis ) + ShmCompletion;
37 ShmImage( Display*, int width, int height, XVisualInfo* );
41 XImage* image() { return _XImage; }
43 void put( Drawable d, GC gc )
45 XShmPutImage( _display, d, gc, _XImage, 0, 0, 0, 0,
46 _XImage->width, _XImage->height, False );
61 static int query( Display* );
63 ShmPixmap( Display*, Drawable, int width, int height, int depth = 0 );
67 Pixmap pixmap() { return _pix; }