diff options
Diffstat (limited to 'src/CrPixmap.c')
-rw-r--r-- | src/CrPixmap.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/CrPixmap.c b/src/CrPixmap.c index 2505f48a..d04168e0 100644 --- a/src/CrPixmap.c +++ b/src/CrPixmap.c @@ -24,9 +24,18 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/lib/X11/CrPixmap.c,v 1.4 2002/11/23 19:27:49 tsi Exp $ */ #include "Xlibint.h" +#ifdef USE_DYNAMIC_XCURSOR +void +_XNoticeCreateBitmap (Display *dpy, + Pixmap pid, + unsigned int width, + unsigned int height); +#endif + Pixmap XCreatePixmap (dpy, d, width, height, depth) register Display *dpy; Drawable d; @@ -44,6 +53,10 @@ Pixmap XCreatePixmap (dpy, d, width, height, depth) pid = req->pid = XAllocID(dpy); UnlockDisplay(dpy); SyncHandle(); +#ifdef USE_DYNAMIC_XCURSOR + if (depth == 1) + _XNoticeCreateBitmap (dpy, pid, width, height); +#endif return (pid); } |