aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martínez <jjm@usebox.net>2023-05-06 20:57:03 +0000
committerJuan J. Martínez <jjm@usebox.net>2023-05-06 20:57:03 +0000
commit3a8be8c9949ac8c37822bed7cf407b46df6dbd0b (patch)
tree73832752c749f73ad2f396835fdf22f8887ded7a
parented63444432dbe894f23ab389f110f7b0cf49c6a5 (diff)
parent1ab6326301ad9f902bb33d149371c54c31e1fa0f (diff)
downloadubox-msx-lib-3a8be8c9949ac8c37822bed7cf407b46df6dbd0b.tar.gz
ubox-msx-lib-3a8be8c9949ac8c37822bed7cf407b46df6dbd0b.zip
Merge branch 'main' into 'main'
source pointer should be constant See merge request reidrac/ubox-msx-lib!38
-rw-r--r--include/ubox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ubox.h b/include/ubox.h
index ea3ebe0..b66c76e 100644
--- a/include/ubox.h
+++ b/include/ubox.h
@@ -107,13 +107,13 @@ void ubox_set_colors(uint8_t fg, uint8_t bg, uint8_t border);
* ubox_write_vm((uint8_t*)0x1b00, 4 * 4, buffer);
* ```
*/
-void ubox_write_vm(uint8_t *dst, uint16_t len, uint8_t *src);
+void ubox_write_vm(uint8_t *dst, uint16_t len, const uint8_t *src);
/**
* Reads a block of `len` bytes from `src` in VMEM (video memory) to `dst`
* in memory.
*/
-void ubox_read_vm(uint8_t *dst, uint16_t len, uint8_t *src);
+void ubox_read_vm(uint8_t *dst, uint16_t len, const uint8_t *src);
/**
* Writes `data` to the `reg` VDP register.