X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fgrav.c;h=a6ea63126f995f20970e79978ba9c29caa90d5e5;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=eee53be460166251cff8faf55480563f9561aff1;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/grav.c b/hacks/grav.c index eee53be4..a6ea6312 100644 --- a/hacks/grav.c +++ b/hacks/grav.c @@ -31,9 +31,10 @@ static const char sccsid[] = "@(#)grav.c 5.00 2000/11/01 xlockmore"; #define MODE_grav #define DEFAULTS "*delay: 10000 \n" \ "*count: 12 \n" \ - "*ncolors: 64 \n" + "*ncolors: 64 \n" \ + "*fpsSolid: true \n" \ + #define BRIGHT_COLORS -# define reshape_grav 0 # define grav_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ #else /* STANDALONE */ @@ -325,6 +326,15 @@ draw_grav(ModeInfo * mi) draw_planet(mi, &gp->planets[ball]); } +ENTRYPOINT void +reshape_grav(ModeInfo * mi, int width, int height) +{ + gravstruct *gp = &gravs[MI_SCREEN(mi)]; + gp->width = width; + gp->height = height; + XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi)); +} + ENTRYPOINT void release_grav(ModeInfo * mi) {