Remove more warnings
This commit is contained in:
parent
626cc8fa6a
commit
6c3ac2af5c
@ -868,7 +868,7 @@ int drawtextwrap(pixel *vid, int x, int y, int w, const char *s, int r, int g, i
|
|||||||
while (*s)
|
while (*s)
|
||||||
{
|
{
|
||||||
wordlen = strcspn(s," .,!?\n");
|
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)
|
if (charspace<wordlen && wordlen && w-(x-cw)<w/3)
|
||||||
{
|
{
|
||||||
x = sx;
|
x = sx;
|
||||||
|
@ -2673,14 +2673,14 @@ int main(int argc, char *argv[])
|
|||||||
#ifdef BETA
|
#ifdef BETA
|
||||||
if (is_beta)
|
if (is_beta)
|
||||||
{
|
{
|
||||||
old_ver_len = textwidth(old_ver_msg_beta);
|
old_ver_len = textwidth((char*)old_ver_msg_beta);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
old_ver_len = textwidth(old_ver_msg);
|
old_ver_len = textwidth((char*)old_ver_msg);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
old_ver_len = textwidth(old_ver_msg);
|
old_ver_len = textwidth((char*)old_ver_msg);
|
||||||
#endif
|
#endif
|
||||||
menu_count();
|
menu_count();
|
||||||
parts = calloc(sizeof(particle), NPART);
|
parts = calloc(sizeof(particle), NPART);
|
||||||
|
Reference in New Issue
Block a user