From d19da029e075536dc16229164b707b64d33f6dde Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Jan 2023 12:26:17 -0500 Subject: Fix inconsistent naming convention --- src/x11.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 -- cgit v1.2.1