From 6c3ac2af5c7b5693bb34213c629053203cacea78 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 8 Apr 2011 15:39:55 +0100 Subject: [PATCH] Remove more warnings --- src/graphics.c | 2 +- src/main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graphics.c b/src/graphics.c index ed96f6474..47af4e1b8 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -868,7 +868,7 @@ int drawtextwrap(pixel *vid, int x, int y, int w, const char *s, int r, int g, i while (*s) { wordlen = strcspn(s," .,!?\n"); - charspace = textwidthx(s, w-(x-cw)); + charspace = textwidthx((char *)s, w-(x-cw)); if (charspace