aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-10 12:26:17 -0500
committerDavid Robillard <d@drobilla.net>2023-01-10 12:26:17 -0500
commitd19da029e075536dc16229164b707b64d33f6dde (patch)
tree2187bbe8a42a169b1bd6786bdcf2087925cd1473 /src
parent604dbd1e736c88bbba36da4a9422615936b856d7 (diff)
downloadpugl-d19da029e075536dc16229164b707b64d33f6dde.tar.gz
pugl-d19da029e075536dc16229164b707b64d33f6dde.tar.bz2
pugl-d19da029e075536dc16229164b707b64d33f6dde.zip
Fix inconsistent naming convention
Diffstat (limited to 'src')
-rw-r--r--src/x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/x11.c b/src/x11.c
index ee9a0a0..bb2e41f 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -68,7 +68,7 @@ enum WmClientStateMessageAction {
};
#ifdef HAVE_XCURSOR
-static const char* const cursor_names[PUGL_NUM_CURSORS] = {
+static const char* const cursorNames[PUGL_NUM_CURSORS] = {
"default", // ARROW
"text", // CARET
"crosshair", // CROSSHAIR
@@ -227,7 +227,7 @@ puglInitViewInternals(PuglWorld* const world)
impl->clipboard.property = XA_PRIMARY;
#ifdef HAVE_XCURSOR
- impl->cursorName = cursor_names[PUGL_CURSOR_ARROW];
+ impl->cursorName = cursorNames[PUGL_CURSOR_ARROW];
#endif
return impl;
@@ -2014,17 +2014,17 @@ puglSetCursor(PuglView* const view, const PuglCursor cursor)
#ifdef HAVE_XCURSOR
PuglInternals* const impl = view->impl;
const unsigned index = (unsigned)cursor;
- const unsigned count = sizeof(cursor_names) / sizeof(cursor_names[0]);
+ const unsigned count = sizeof(cursorNames) / sizeof(cursorNames[0]);
if (index >= count) {
return PUGL_BAD_PARAMETER;
}
- const char* const name = cursor_names[index];
+ const char* const name = cursorNames[index];
if (!impl->win || impl->cursorName == name) {
return PUGL_SUCCESS;
}
- impl->cursorName = cursor_names[index];
+ impl->cursorName = cursorNames[index];
return defineCursorName(view, impl->cursorName);
#else