X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fworm.c;h=1989b3ab1ed2e14de8e853b1f446908b6c478818;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hp=64bef616b3a69a1d200811d33ca2ad293a84e620;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/worm.c b/hacks/worm.c index 64bef616..1989b3ab 100644 --- a/hacks/worm.c +++ b/hacks/worm.c @@ -48,7 +48,9 @@ static const char sccsid[] = "@(#)worm.c 4.04 97/07/28 xlockmore"; "*right3d: red \n" \ "*left3d: blue \n" \ "*both3d: magenta \n" \ - "*none3d: black \n" + "*none3d: black \n" \ + "*fpsSolid: true \n" \ + # define SMOOTH_COLORS # define reshape_worm 0 # define worm_handle_event 0 @@ -270,11 +272,7 @@ init_worm (ModeInfo * mi) int size = MI_SIZE(mi); int i, j; - if (worms == NULL) { - if ((worms = (wormstruct *) calloc(MI_NUM_SCREENS(mi), - sizeof (wormstruct))) == NULL) - return; - } + MI_INIT (mi, worms, 0); wp = &worms[MI_SCREEN(mi)]; if (MI_NPIXELS(mi) <= 2 || MI_WIN_IS_USE3D(mi)) wp->nc = 2;