# define MODE_strange
# define DEFAULTS "*delay: 10000 \n" \
"*ncolors: 100 \n" \
- "*fpsSolid: True \n"
+ "*fpsSolid: True \n" \
+ "*ignoreRotation: True \n" \
# define SMOOTH_COLORS
# define refresh_strange 0
-# define reshape_strange 0
-# define strange_handle_event 0
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
static ATTRACTOR *Root = (ATTRACTOR *) NULL;
#ifdef useAccumulator
-XColor* cols;
+static XColor* cols;
#endif
#ifdef POINTS_HISTORY
A->Count = 0;
}
A->Col++;
+ mi->recursion_depth = A->Count;
}
XSetGraphicsExposures(display, MI_GC(mi), False);
}
+ENTRYPOINT void
+reshape_strange(ModeInfo * mi, int width, int height)
+{
+ XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi));
+ init_strange (mi);
+}
+
/***************************************************************/
ENTRYPOINT void
}
}
+ENTRYPOINT Bool
+strange_handle_event (ModeInfo *mi, XEvent *event)
+{
+ if (screenhack_event_helper (MI_DISPLAY(mi), MI_WINDOW(mi), event))
+ {
+ reshape_strange (mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ return True;
+ }
+ return False;
+}
+
+
XSCREENSAVER_MODULE ("Strange", strange)
#endif /* MODE_strange */