X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fdrift.c;h=711bc09e96991348213b0b49e5af500fcd4e42b8;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=e2c722895b64cbef4e452eea4a9bb91974ed4c85;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/drift.c b/hacks/drift.c index e2c72289..711bc09e 100644 --- a/hacks/drift.c +++ b/hacks/drift.c @@ -34,9 +34,10 @@ static const char sccsid[] = "@(#)drift.c 5.00 2000/11/01 xlockmore"; # define MODE_drift # define DEFAULTS "*delay: 10000 \n" \ "*count: 30 \n" \ - "*ncolors: 200 \n" + "*ncolors: 200 \n" \ + "*fpsSolid: true \n" \ + # define SMOOTH_COLORS -# define reshape_drift 0 # define drift_handle_event 0 # include "xlockmore.h" /* in xscreensaver distribution */ # include "erase.h" @@ -682,6 +683,13 @@ release_drift(ModeInfo * mi) } } +ENTRYPOINT void +reshape_drift(ModeInfo * mi, int width, int height) +{ + MI_CLEARWINDOW(mi); + init_drift (mi); +} + ENTRYPOINT void refresh_drift(ModeInfo * mi) {