X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fextrusion-twistoid.c;h=82034afcfabe2d4facd6d20368163b6a9286ab9d;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=c3a247f3b00d9948255434ef040e5e8842402766;hpb=2d04c4f22466851aedb6ed0f2919d148f726b889;p=xscreensaver diff --git a/hacks/glx/extrusion-twistoid.c b/hacks/glx/extrusion-twistoid.c index c3a247f3..82034afc 100644 --- a/hacks/glx/extrusion-twistoid.c +++ b/hacks/glx/extrusion-twistoid.c @@ -11,20 +11,10 @@ * -- port to glut Linas Vepstas March 1995 */ -/* required include files */ -#ifdef HAVE_CONFIG_H -#include -#endif +#include "extrusion.h" #include #include -#include -/*#include */ -#ifdef HAVE_GLE3 -#include -#else -#include -#endif /* Some files do not define M_PI... */ #ifndef M_PI @@ -130,8 +120,10 @@ static void init_tripples (void) } /* now, a zig-zag corrugation */ - while (i< NUM_TWIS_PTS) { + while (1) { + if (i >= NUM_TWIS_PTS) break; TWIST ((-10.0 +(double) i), 0.0); + if (i >= NUM_TWIS_PTS) break; TWIST ((-9.5 +(double) i), 1.0); } }