X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fcage.c;h=a2983bcd718f641990dfacf0e82ec715e945bd7b;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hp=27ea8030d65ff176af9e86268d9b56ab123c98ca;hpb=de041722414a2e31c1c04caa10aaec9d6952e9b4;p=xscreensaver diff --git a/hacks/glx/cage.c b/hacks/glx/cage.c index 27ea8030..a2983bcd 100644 --- a/hacks/glx/cage.c +++ b/hacks/glx/cage.c @@ -82,9 +82,10 @@ static const char sccsid[] = "@(#)cage.c 4.07 98/01/04 xlockmore"; # 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: 20000 \n" \ +# define DEFAULTS "*delay: 25000 \n" \ + "*showFPS: False \n" \ "*wireframe: False \n" # include "xlockmore.h" /* from the xscreensaver distribution */ #else /* !STANDALONE */ @@ -292,8 +293,8 @@ draw_impossiblecage(cagestruct * cp) 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)]; @@ -372,7 +373,7 @@ init_cage(ModeInfo * 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); @@ -417,6 +418,7 @@ draw_cage(ModeInfo * mi) glPopMatrix(); + if (mi->fps_p) do_fps (mi); glFlush(); glXSwapBuffers(display, window);