- sinfree(&(sp->x));
- sinfree(&(sp->y));
- sinfree(&(sp->z));
- sinfree(&(sp->sizex));
- sinfree(&(sp->sizey));
- sinfree(&(sp->thetax));
- sinfree(&(sp->thetay));
- sinfree(&(sp->thetaz));
- }
- (void) free((void *) starfield);
- starfield = NULL;
- }
+ sinfree(&(sp->x));
+ sinfree(&(sp->y));
+ sinfree(&(sp->z));
+ sinfree(&(sp->sizex));
+ sinfree(&(sp->sizey));
+ sinfree(&(sp->thetax));
+ sinfree(&(sp->thetay));
+ sinfree(&(sp->thetaz));
+}
+
+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);