X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fgrav.c;h=a6ea63126f995f20970e79978ba9c29caa90d5e5;hp=ef8a92d7e23557d7c01d983b79379bcb15bdc234;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/grav.c b/hacks/grav.c index ef8a92d7..a6ea6312 100644 --- a/hacks/grav.c +++ b/hacks/grav.c @@ -35,7 +35,6 @@ static const char sccsid[] = "@(#)grav.c 5.00 2000/11/01 xlockmore"; "*fpsSolid: true \n" \ #define BRIGHT_COLORS -# define reshape_grav 0 # define grav_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ #else /* STANDALONE */ @@ -327,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) {