diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2021-03-10 19:41:43 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2021-03-11 20:25:03 -0500 |
commit | 7623dae73c71fd3bfc2b820e6c98eb99b36dba44 (patch) | |
tree | d50bc574b0eb3e12ab7c3dd9cda3d7340dbff249 | |
parent | cea72e14274d3288b641e14f6cf1171b97485790 (diff) |
fix a missing initializer
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r-- | src/cursor.c | 6 |
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 |