X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=hacks%2Fdrift.c;h=3547ca5109c2d69638f7da29d90a8e0e31b64a5f;hb=dba664f31aa87285db4d76cf8c5e66335299703a;hp=e2c722895b64cbef4e452eea4a9bb91974ed4c85;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/drift.c b/hacks/drift.c index e2c72289..3547ca51 100644 --- a/hacks/drift.c +++ b/hacks/drift.c @@ -34,9 +34,11 @@ 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" \ + "*ignoreRotation: 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 +684,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) {