From c00c2e9829ffcba19b083fe761b23d415a3a5120 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 8 Jun 2013 17:38:36 +0000 Subject: [PATCH] Fix font prototype mismatch in SDL-only case Commit 33bf139002533b2115251e9f391988001dc8fdc3 changed OGL gr_internal_color_string to take a const char, but left SDL gr_internal_color_string with non-const char. --- 2d/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2d/font.c b/2d/font.c index c7b5754b1..ba0b4152f 100644 --- a/2d/font.c +++ b/2d/font.c @@ -438,10 +438,10 @@ grs_bitmap char_bm = { 0 //unused }; -int gr_internal_color_string(int x, int y, char *s ) +int gr_internal_color_string(int x, int y, const char *s ) { unsigned char * fp; - char *text_ptr, *next_row, *text_ptr1; + const char *text_ptr, *next_row, *text_ptr1; int width, spacing,letter; int xx,yy;