aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/gfx/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gfx/font.cpp b/engines/sci/gfx/font.cpp
index d695915cb1..387c41e889 100644
--- a/engines/sci/gfx/font.cpp
+++ b/engines/sci/gfx/font.cpp
@@ -172,7 +172,7 @@ static void render_char(byte *dest, byte *src, int width, int line_width, int li
}
gfx_pixmap_t *gfxr_draw_font(gfx_bitmap_font_t *font, const char *stext, int characters, PaletteEntry *fg0, PaletteEntry *fg1, PaletteEntry *bg) {
- const byte *text = (byte *)stext;
+ const byte *text = (const byte *)stext;
int height = font->height;
int width = 0;
gfx_pixmap_t *pxm;