summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c2
-rw-r--r--src/main.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics.c b/src/graphics.c
index ed96f64..47af4e1 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<wordlen && wordlen && w-(x-cw)<w/3)
{
x = sx;
diff --git a/src/main.c b/src/main.c
index c6776d3..921471e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2673,14 +2673,14 @@ int main(int argc, char *argv[])
#ifdef BETA
if (is_beta)
{
- old_ver_len = textwidth(old_ver_msg_beta);
+ old_ver_len = textwidth((char*)old_ver_msg_beta);
}
else
{
- old_ver_len = textwidth(old_ver_msg);
+ old_ver_len = textwidth((char*)old_ver_msg);
}
#else
- old_ver_len = textwidth(old_ver_msg);
+ old_ver_len = textwidth((char*)old_ver_msg);
#endif
menu_count();
parts = calloc(sizeof(particle), NPART);