aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-02 16:21:22 -0500
committerDavid Robillard <d@drobilla.net>2023-01-02 16:21:41 -0500
commite1eaf1583025ed182b9a7226f3eb17e08e81bd34 (patch)
tree5ca60cbee4cc00d1c5b1bdfb6d4c3cbf48b30266
parenta94b055296f06cfaf3dcbf7e9125087dbaab73fd (diff)
downloadpugl-e1eaf1583025ed182b9a7226f3eb17e08e81bd34.tar.gz
pugl-e1eaf1583025ed182b9a7226f3eb17e08e81bd34.tar.bz2
pugl-e1eaf1583025ed182b9a7226f3eb17e08e81bd34.zip
Fix PUGL_NUM_CURSORS
-rw-r--r--include/pugl/pugl.h2
-rw-r--r--src/x11.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 67b1e60..62284e6 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -1273,7 +1273,7 @@ typedef enum {
} PuglCursor;
/// The number of #PuglCursor values
-#define PUGL_NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1U)
+#define PUGL_NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_RIGHT_DOWN_LEFT + 1U)
/**
Grab the keyboard input focus.
diff --git a/src/x11.c b/src/x11.c
index 78cd48e..2bdfc4a 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -66,10 +66,8 @@ enum WmClientStateMessageAction {
WM_STATE_TOGGLE
};
-#define NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_RIGHT_DOWN_LEFT + 1U)
-
#ifdef HAVE_XCURSOR
-static const char* const cursor_names[NUM_CURSORS] = {
+static const char* const cursor_names[PUGL_NUM_CURSORS] = {
"default", // ARROW
"text", // CARET
"crosshair", // CROSSHAIR