aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/text.cpp')
-rw-r--r--engines/agi/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 7d9ef7e5c0..b0d0c9d727 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -36,7 +36,7 @@ static void print_text2(int l, const char *msg, int foff, int xoff, int yoff,
int maxx, minx, ofoff;
int update;
/* Note: Must be unsigned to use AGDS cyrillic characters! */
- unsigned char *m;
+ const unsigned char *m;
/* kludge! */
update = 1;
@@ -57,7 +57,7 @@ static void print_text2(int l, const char *msg, int foff, int xoff, int yoff,
minx = GFX_WIDTH;
ofoff = foff;
- for (m = (unsigned char *)msg, x1 = y1 = 0; *m; m++) {
+ for (m = (const unsigned char *)msg, x1 = y1 = 0; *m; m++) {
if (*m >= 0x20 || *m == 1 || *m == 2 || *m == 3) {
/* FIXME */
@@ -393,7 +393,7 @@ int selection_box(const char *m, const char **b) {
/**
*
*/
-int print(char *p, int lin, int col, int len) {
+int print(const char *p, int lin, int col, int len) {
if (p == NULL)
return 0;