X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fswirl.c;h=ba959ac692045fc483901291d73a469433863312;hp=5a3d97a2a5dcabf626fac89523a6f359d9ebab0c;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/swirl.c b/hacks/swirl.c index 5a3d97a2..ba959ac6 100644 --- a/hacks/swirl.c +++ b/hacks/swirl.c @@ -38,7 +38,6 @@ static const char sccsid[] = "@(#)swirl.c 4.00 97/01/01 xlockmore"; # define SMOOTH_COLORS # define WRITABLE_COLORS -# define reshape_swirl 0 # define swirl_handle_event 0 # include "xlockmore.h" /* from the xscreensaver distribution */ # ifdef HAVE_XSHM_EXTENSION @@ -1433,6 +1432,13 @@ draw_swirl(ModeInfo * mi) } } +ENTRYPOINT void +reshape_swirl(ModeInfo * mi, int width, int height) +{ + XClearWindow (MI_DISPLAY (mi), MI_WINDOW(mi)); + init_swirl (mi); +} + /****************************************************************/ ENTRYPOINT void