From c9f28c1ce3ffda9c407003a26adf903d810b681b Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 6 May 2023 22:00:16 +0100 Subject: Set tighter qualifiers for pointer parameters This should prevent warnings when using source data from ROM. --- include/spman.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/spman.h') diff --git a/include/spman.h b/include/spman.h index d31dc3e..2a5db45 100644 --- a/include/spman.h +++ b/include/spman.h @@ -77,7 +77,7 @@ void spman_init(); * A `type` can't be reused with a different pattern, [spman_init](#spman_init) * has to be called again to free all the patterns. */ -uint8_t spman_alloc_pat(uint8_t type, uint8_t *data, uint8_t len, uint8_t flip); +uint8_t spman_alloc_pat(uint8_t type, const uint8_t *data, uint8_t len, uint8_t flip); // @Sprite allocation @@ -97,7 +97,7 @@ uint8_t spman_alloc_pat(uint8_t type, uint8_t *data, uint8_t len, uint8_t flip); * Allocated sprites are shown on screen by calling to * [spman_update](#spman_update). */ -void spman_alloc_fixed_sprite(struct sprite_attr *sp); +void spman_alloc_fixed_sprite(const struct sprite_attr *sp); /** * Allocates a sprite described by `sp` to be shown on the screen on the next @@ -114,7 +114,7 @@ void spman_alloc_fixed_sprite(struct sprite_attr *sp); * Allocated sprites are shown on screen by calling to * [spman_update](#spman_update). */ -void spman_alloc_sprite(struct sprite_attr *sp); +void spman_alloc_sprite(const struct sprite_attr *sp); /** * Any allocated sprite will be freed. -- cgit v1.2.3