Fix const pointers in vic_setmode

This commit is contained in:
drmortalwombat 2023-09-25 19:18:22 +02:00
parent 619c4f8962
commit d93cffaa30
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ int vic_sprgetx(byte s)
return vic.spr_pos[s].x | ((vic.spr_msbx & (1 << s)) ? 256 : 0); 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) switch (mode)
{ {

View File

@ -91,7 +91,7 @@ enum VicMode
// set the display mode and base address. This will also // set the display mode and base address. This will also
// adapt the bank. // 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 // put a sprite at the given x/y location, taking care of the
// x MSB // x MSB