diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
commit | 420ac2c8f2307ddcbe551972544bbe11f05ee7ff (patch) | |
tree | 70748bd36a378f3a44ccb720e2776030eac956f2 /src/spman | |
parent | 0b3ba3e708899145296e3b6c1496ff87efe6a6c7 (diff) | |
download | ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.tar.gz ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.zip |
Avoid function declarator with no prototype errors
This is for SDCC 4.4.0 at least.
Diffstat (limited to 'src/spman')
-rw-r--r-- | src/spman/spman.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spman/spman.c b/src/spman/spman.c index ba8a939..8bb8ba1 100644 --- a/src/spman/spman.c +++ b/src/spman/spman.c @@ -15,7 +15,7 @@ struct sprite_attr sp_buffer[SPMAN_MAX_SPRITES * 2]; uint8_t sp_pat_map[SPMAN_MAX_PATTERNS]; uint8_t sp_last_pat; -void spman_init() +void spman_init(void) { sp_last_pat = 0; sp_idx = 0; @@ -49,7 +49,7 @@ uint8_t spman_alloc_pat(uint8_t type, uint8_t *data, uint8_t len, uint8_t flip) return sp_pat_map[type] * 4; } -void spman_sprite_flush() +void spman_sprite_flush(void) { sp_last_fixed_sprite = 0; sp_last_sprite = 0; @@ -83,7 +83,7 @@ static const struct sprite_attr hide = { 208, 0, 0, 0 }; static uint8_t *p; -void spman_update() +void spman_update(void) { p = (uint8_t*)SPMAN_SPR_ATTRS; @@ -113,7 +113,7 @@ void spman_update() spman_sprite_flush(); } -void spman_hide_all_sprites() +void spman_hide_all_sprites(void) { ubox_wait_vsync(); ubox_write_vm((uint8_t *)SPMAN_SPR_ATTRS, 4, (uint8_t *)hide); |