#define DEFAULTS "*delay: 10000 \n" \
"*showFPS: False \n" \
-# define refresh_pulsar 0
# define release_pulsar 0
-# define pulsar_handle_event 0
+# define pulsar_handle_event xlockmore_no_events
# include "xlockmore.h" /* from the xpulsar distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
# endif /* VMS */
#endif
-#include "xpm-ximage.h"
+#include "ximage-loader.h"
/* Functions for loading and storing textures */
#ifdef USE_MODULES
ModStruct pulsar_description =
{"pulsar", "init_pulsar", "draw_pulsar", NULL,
- "draw_pulsar", "init_pulsar", NULL, &pulsar_opts,
+ "draw_pulsar", "init_pulsar", "free_pulsar", &pulsar_opts,
1000, 1, 2, 1, 4, 1.0, "",
"OpenGL pulsar", 0, NULL};
#endif
}
else
{
- XImage *ximage = xpm_file_to_ximage (MI_DISPLAY (mi), MI_VISUAL (mi),
- MI_COLORMAP (mi), filename);
+ XImage *ximage = file_to_ximage (MI_DISPLAY (mi), MI_VISUAL (mi),
+ filename);
if (! ximage)
goto BUILTIN;
image = (GLubyte *) ximage->data;
resetProjection();
}
-static void free_pulsar(ModeInfo * mi);
-
ENTRYPOINT void
init_pulsar(ModeInfo * mi)
{
pulsarstruct *gp;
- MI_INIT (mi, Pulsar, free_pulsar);
+ MI_INIT (mi, Pulsar);
gp = &Pulsar[screen];
gp->window = MI_WINDOW(mi);
/* all sorts of nice cleanup code should go here! */
-static void free_pulsar(ModeInfo * mi)
+ENTRYPOINT void free_pulsar(ModeInfo * mi)
{
pulsarstruct *gp = &Pulsar[MI_SCREEN(mi)];
free(gp->quads);