# define PROGCLASS "Morph3d"
# define HACK_INIT init_morph3d
# define HACK_DRAW draw_morph3d
-# define morph3d_opts xlockmore_opts
-# define DEFAULTS "*delay: 40000 \n" \
- "*count: 0 \n"
+# define HACK_RESHAPE reshape_morph3d
+# define morph3d_opts xlockmore_opts
+# define DEFAULTS "*delay: 40000 \n" \
+ "*showFPS: False \n" \
+ "*count: 0 \n"
# include "xlockmore.h" /* from the xscreensaver distribution */
#else /* !STANDALONE */
# include "xlock.h" /* from the xlockmore distribution */
glDeleteLists(list, 1);
}
-static void
-reshape(ModeInfo * mi, int width, int height)
+void
+reshape_morph3d(ModeInfo * mi, int width, int height)
{
morph3dstruct *mp = &morph3d[MI_SCREEN(mi)];
if ((mp->glx_context = init_GL(mi)) != NULL) {
- reshape(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
+ reshape_morph3d(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
mp->object = MI_COUNT(mi);
if (mp->object <= 0 || mp->object > 5)
mp->object = NRAND(5) + 1;
glPopMatrix();
+ if (mi->fps_p) do_fps (mi);
+
glFlush();
glXSwapBuffers(display, window);