/* -*- Mode: C; tab-width: 4 -*- */
/* loop --- Chris Langton's self-producing loops */
-#if !defined( lint ) && !defined( SABER )
+#if 0
static const char sccsid[] = "@(#)loop.c 5.01 2000/03/15 xlockmore";
-
#endif
/*-
"*cycles: 1600 \n" \
"*size: -12 \n" \
"*ncolors: 15 \n" \
- "*neighbors: 0 \n"
+
#define UNIFORM_COLORS
#include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
static XrmOptionDescRec opts[] =
{
- {(char *) "-neighbors", (char *) ".loop.neighbors", XrmoptionSepArg, (caddr_t) NULL}
+ {"-neighbors", ".loop.neighbors", XrmoptionSepArg, 0}
};
static argtype vars[] =
{
- {(caddr_t *) & neighbors, (char *) "neighbors", (char *) "Neighbors", (char *) DEF_NEIGHBORS, t_Int}
+ {&neighbors, "neighbors", "Neighbors", DEF_NEIGHBORS, t_Int}
};
static OptionStruct desc[] =
{
- {(char *) "-neighbors num", (char *) "squares 4 or hexagons 6"}
+ {"-neighbors num", "squares 4 or hexagons 6"}
};
ModeSpecOpt loop_opts =
}
}
+static void *stop_warning_about_triangleUnit_already;
+
+
void
init_loop(ModeInfo * mi)
{
loopstruct *lp;
XGCValues gcv;
+ stop_warning_about_triangleUnit_already = (void *) &triangleUnit;
+
if (loops == NULL) {
if ((loops = (loopstruct *) calloc(MI_NUM_SCREENS(mi),
sizeof (loopstruct))) == NULL)