X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbouboule.c;h=081ba4851c57dc286b35fd16bce13c3a0e2c91ad;hp=15bf2278441b01174e98bbb352c5f0cced89104d;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hpb=c70f94f648d51bb4828193124f325fa52b0e57f3 diff --git a/hacks/bouboule.c b/hacks/bouboule.c index 15bf2278..081ba485 100644 --- a/hacks/bouboule.c +++ b/hacks/bouboule.c @@ -87,7 +87,6 @@ static const char sccsid[] = "@(#)bouboule.c 4.00 97/01/01 xlockmore"; "*fpsSolid: true \n" # define SMOOTH_COLORS -# define reshape_bouboule 0 # define bouboule_handle_event 0 # include "xlockmore.h" /* from the xscreensaver distribution */ #else /* !STANDALONE */ @@ -838,6 +837,24 @@ release_bouboule(ModeInfo * mi) } } +ENTRYPOINT void +reshape_bouboule(ModeInfo * mi, int width, int height) +{ + StarField *sp = &starfield[MI_SCREEN(mi)]; + sp->width = width; + sp->height = height; + sininit(&sp->x, + sp->x.alpha, sp->x.step, + ((double) sp->width) / 4.0, + 3.0 * ((double) sp->width) / 4.0, + POSCANRAND); + sininit(&sp->y, + sp->y.alpha, sp->y.step, + ((double) sp->height) / 4.0, + 3.0 * ((double) sp->height) / 4.0, + POSCANRAND); +} + ENTRYPOINT void refresh_bouboule(ModeInfo * mi) {