# include <unistd.h>
#endif
-
#include "starwars.h"
#define DEFAULTS "*delay: 40000 \n" \
"*showFPS: False \n" \
static int
-string_width (sws_configuration *sc, const char *s)
+sw_string_width (sws_configuration *sc, const char *s)
{
if (textures_p)
return texture_string_width (sc->texfont, s, 0);
char s[2];
s[0] = c;
s[1] = 0;
- return string_width (sc, s);
+ return sw_string_width (sc, s);
}
while (*s)
{
*c = *s++;
- w = string_width (sc, c);
+ w = sw_string_width (sc, c);
glBegin (GL_LINE_LOOP);
glVertex3f (0, 0, 0);
glVertex3f (w, 0, 0);
if (alignment >= 0)
{
- int n = string_width (sc, line);
+ int n = sw_string_width (sc, line);
xoff = 1.0 - (n * sc->font_scale);
}
}
+#ifdef __GNUC__
+ __extension__ /* don't warn about "string length is greater than the length
+ ISO C89 compilers are required to support" when including
+ "starwars.txt" in the defaults... */
+#endif
+
XSCREENSAVER_MODULE_2 ("StarWars", starwars, sws)
#endif /* USE_GL */