From d93cffaa300da5e7f5a2e26ebc472d0a03545799 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Mon, 25 Sep 2023 19:18:22 +0200 Subject: [PATCH] Fix const pointers in vic_setmode --- include/c64/vic.c | 2 +- include/c64/vic.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c64/vic.c b/include/c64/vic.c index 28d6827..43894a1 100644 --- a/include/c64/vic.c +++ b/include/c64/vic.c @@ -21,7 +21,7 @@ int vic_sprgetx(byte s) return vic.spr_pos[s].x | ((vic.spr_msbx & (1 << s)) ? 256 : 0); } -void vic_setmode(VicMode mode, char * text, char * font) +void vic_setmode(VicMode mode, const char * text, const char * font) { switch (mode) { diff --git a/include/c64/vic.h b/include/c64/vic.h index 718ae88..430de53 100644 --- a/include/c64/vic.h +++ b/include/c64/vic.h @@ -91,7 +91,7 @@ enum VicMode // set the display mode and base address. This will also // adapt the bank. -void vic_setmode(VicMode mode, char * text, char * font); +void vic_setmode(VicMode mode, const char * text, const char * font); // put a sprite at the given x/y location, taking care of the // x MSB