Cleanup: use const custom cursor arguments to GHOST

Also use int[2] for size & hot-spot arguments to avoid passing
around so many arguments.
This commit is contained in:
Campbell Barton
2025-07-01 14:12:49 +10:00
parent 5bdc6df9d1
commit bfd3ff7e3d
20 changed files with 158 additions and 188 deletions

View File

@@ -730,7 +730,10 @@ static void extrawindow_spin_cursor(ExtraWindow *ew, uint64_t time)
mask[y][x / 8] |= (1 << (x % 8));
}
GHOST_SetCustomCursorShape(ew->win, &bitmap[0][0], &mask[0][0], 16, 16, 0, 0, true);
const int size[2] = {16, 16};
const int hot_spot[2] = {0, 0};
GHOST_SetCustomCursorShape(ew->win, &bitmap[0][0], &mask[0][0], size, hot_spot, true);
}
static void extrawindow_handle(void *priv, GHOST_EventHandle evt)