* Since I'm not a native English speaker, my apologies for any grammatical
* mistake.
*
- * My e-mail addresses are
- * vianna@cat.cbpf.br
- * and
+ * My e-mail address is
* m-vianna@usa.net
*
* Marcelo F. Vianna (Jun-01-1997)
# define PROGCLASS "Cage"
# define HACK_INIT init_cage
# define HACK_DRAW draw_cage
+# define HACK_RESHAPE reshape_cage
# define cage_opts xlockmore_opts
-# define DEFAULTS "*cycles: 1 \n" \
- "*delay: 1000 \n" \
+# define DEFAULTS "*delay: 25000 \n" \
+ "*showFPS: False \n" \
"*wireframe: False \n"
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
glPopMatrix();
}
-static void
-reshape(ModeInfo * mi, int width, int height)
+void
+reshape_cage(ModeInfo * mi, int width, int height)
{
cagestruct *cp = &cage[MI_SCREEN(mi)];
if ((cp->glx_context = init_GL(mi)) != NULL) {
- reshape(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ reshape_cage(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
glDrawBuffer(GL_BACK);
if (!glIsList(objects))
objects = glGenLists(1);
Display *display = MI_DISPLAY(mi);
Window window = MI_WINDOW(mi);
+ MI_IS_DRAWN(mi) = True;
+
if (!cp->glx_context)
return;
glPopMatrix();
+ if (mi->fps_p) do_fps (mi);
glFlush();
glXSwapBuffers(display, window);