/* -*- Mode: C; tab-width: 4 -*- */
/* rotor --- a swirly rotor */
-#if !defined( lint ) && !defined( SABER )
+#if 0
static const char sccsid[] = "@(#)rotor.c 5.00 2000/11/01 xlockmore";
-
#endif
/*-
#ifdef STANDALONE
#define MODE_rotor
-#define PROGCLASS "Rotor"
-#define HACK_INIT init_rotor
-#define HACK_DRAW draw_rotor
-#define rotor_opts xlockmore_opts
-#define DEFAULTS "*delay: 10000 \n" \
- "*count: 4 \n" \
- "*cycles: 20 \n" \
- "*size: -6 \n" \
- "*ncolors: 200 \n"
-#define SMOOTH_COLORS
-#include "xlockmore.h" /* in xscreensaver distribution */
+#define DEFAULTS "*delay: 10000 \n" \
+ "*count: 4 \n" \
+ "*cycles: 20 \n" \
+ "*size: -6 \n" \
+ "*ncolors: 200 \n" \
+ "*fpsSolid: true \n" \
+
+# define SMOOTH_COLORS
+# define reshape_rotor 0
+# define rotor_handle_event 0
+# include "xlockmore.h" /* in xscreensaver distribution */
#else /* STANDALONE */
-#include "xlock.h" /* in xlockmore distribution */
+# include "xlock.h" /* in xlockmore distribution */
#endif /* STANDALONE */
#ifdef MODE_rotor
-ModeSpecOpt rotor_opts =
+ENTRYPOINT ModeSpecOpt rotor_opts =
{0, (XrmOptionDescRec *) NULL, 0, (argtype *) NULL, (OptionStruct *) NULL};
#ifdef USE_MODULES
}
}
-void
-init_rotor(ModeInfo * mi)
+ENTRYPOINT void
+init_rotor (ModeInfo * mi)
{
int x;
elem *pelem;
}
rp = &rotors[MI_SCREEN(mi)];
+#ifdef HAVE_COCOA
+ jwxyz_XSetAntiAliasing (MI_DISPLAY(mi), MI_GC(mi), False);
+#endif
+
rp->prevcenterx = rp->centerx;
rp->prevcentery = rp->centery;
MI_CLEARWINDOW(mi);
}
-void
-draw_rotor(ModeInfo * mi)
+ENTRYPOINT void
+draw_rotor (ModeInfo * mi)
{
Display *display = MI_DISPLAY(mi);
GC gc = MI_GC(mi);
LineSolid, CapButt, JoinMiter);
}
-void
-release_rotor(ModeInfo * mi)
+ENTRYPOINT void
+release_rotor (ModeInfo * mi)
{
if (rotors != NULL) {
int screen;
}
}
-void
-refresh_rotor(ModeInfo * mi)
+ENTRYPOINT void
+refresh_rotor (ModeInfo * mi)
{
rotorstruct *rp;
rp->redrawpos = 1;
}
+XSCREENSAVER_MODULE ("Rotor", rotor)
+
#endif /* MODE_rotor */