summaryrefslogtreecommitdiff
path: root/src/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cursor.c')
-rw-r--r--src/cursor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cursor.c b/src/cursor.c
index 5d6b169..9ade0f4 100644
--- a/src/cursor.c
+++ b/src/cursor.c
@@ -805,8 +805,10 @@ _XcursorCreateGlyphCursor(Display *dpy,
Cursor
_XcursorCreateFontCursor (Display *dpy, unsigned int shape)
{
- static XColor _Xconst foreground = { 0, 0, 0, 0 }; /* black */
- static XColor _Xconst background = { 0, 65535, 65535, 65535 }; /* white */
+#define DATA(c) { 0UL, c, c, c, 0, 0 }
+ static XColor _Xconst foreground = DATA(0); /* black */
+ static XColor _Xconst background = DATA(65535); /* white */
+#undef DATA
/*
* the cursor font contains the shape glyph followed by the mask