summaryrefslogtreecommitdiff
path: root/src/CrCursor.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
committerEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
commitc6349f43193b74a3c09945f3093a871b0157ba47 (patch)
treeaea173c19da6fa57e24eb4633ff815feb7ae3fa0 /src/CrCursor.c
parentc3c4ddc682950a01b80825021f3e2503ab01ea7f (diff)
downloadxorg-lib-libX11-c6349f43193b74a3c09945f3093a871b0157ba47.tar.gz
Merging XORG-CURRENT into trunk
Diffstat (limited to 'src/CrCursor.c')
-rw-r--r--src/CrCursor.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/CrCursor.c b/src/CrCursor.c
index 93c7a006..c3ce84b3 100644
--- a/src/CrCursor.c
+++ b/src/CrCursor.c
@@ -24,9 +24,21 @@ 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$ */
#include "Xlibint.h"
+#ifdef USE_DYNAMIC_XCURSOR
+Cursor
+_XTryShapeBitmapCursor (Display *dpy,
+ Pixmap source,
+ Pixmap mask,
+ XColor *foreground,
+ XColor *background,
+ unsigned int x,
+ unsigned int y);
+#endif
+
Cursor XCreatePixmapCursor(dpy, source, mask, foreground, background, x, y)
register Display *dpy;
Pixmap source, mask;
@@ -37,6 +49,12 @@ Cursor XCreatePixmapCursor(dpy, source, mask, foreground, background, x, y)
register xCreateCursorReq *req;
Cursor cid;
+#ifdef USE_DYNAMIC_XCURSOR
+ cid = _XTryShapeBitmapCursor (dpy, source, mask,
+ foreground, background, x, y);
+ if (cid)
+ return cid;
+#endif
LockDisplay(dpy);
GetReq(CreateCursor, req);
req->cid = cid = XAllocID(dpy);