X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fbouboule.c;h=d7be5a0f61b23de742d9df45494eae79904d5299;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=15bf2278441b01174e98bbb352c5f0cced89104d;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/bouboule.c b/hacks/bouboule.c index 15bf2278..d7be5a0f 100644 --- a/hacks/bouboule.c +++ b/hacks/bouboule.c @@ -84,10 +84,10 @@ static const char sccsid[] = "@(#)bouboule.c 4.00 97/01/01 xlockmore"; "*left3d: blue \n" \ "*both3d: magenta \n" \ "*none3d: black \n" \ - "*fpsSolid: true \n" + "*fpsSolid: true \n" \ + "*ignoreRotation: 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 +838,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) {