aboutsummaryrefslogtreecommitdiff
path: root/include/spman.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-06 22:00:16 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-06 22:00:16 +0100
commitc9f28c1ce3ffda9c407003a26adf903d810b681b (patch)
tree0387d4fa236b37519f33295352aceb1babb98700 /include/spman.h
parent3a8be8c9949ac8c37822bed7cf407b46df6dbd0b (diff)
downloadubox-msx-lib-c9f28c1ce3ffda9c407003a26adf903d810b681b.tar.gz
ubox-msx-lib-c9f28c1ce3ffda9c407003a26adf903d810b681b.zip
Set tighter qualifiers for pointer parameters
This should prevent warnings when using source data from ROM.
Diffstat (limited to 'include/spman.h')
-rw-r--r--include/spman.h6
1 files changed, 3 insertions, 3 deletions
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.