X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Flavalite.c;h=8c653287321ab0a207fc5cc5aab7e94d6f928d24;hp=631c2e22b6d3e7bb77e1927007dd4c52971e939a;hb=723c9eeee862766a1534b2ce17b78adbfac1c3be;hpb=13dbc569cdc6e29019722c0ef9b932a925efbcad diff --git a/hacks/glx/lavalite.c b/hacks/glx/lavalite.c index 631c2e22..8c653287 100644 --- a/hacks/glx/lavalite.c +++ b/hacks/glx/lavalite.c @@ -244,8 +244,6 @@ typedef struct { GLuint bottle_list; GLuint ball_list; - Bool spin_x, spin_y, spin_z; /* spin of the scene overall */ - int bottle_poly_count; /* polygons in the bottle only */ } lavalite_configuration; @@ -1334,24 +1332,7 @@ init_lavalite (ModeInfo *mi) reshape_lavalite (mi, MI_WIDTH(mi), MI_HEIGHT(mi)); { - char *s = do_spin; - while (*s) - { - if (*s == ' ' || *s == '\t') ; - else if (*s == 'x' || *s == 'X') bp->spin_x = 1; - else if (*s == 'y' || *s == 'Y') bp->spin_y = 1; - else if (*s == 'z' || *s == 'Z') bp->spin_z = 1; - else - { - fprintf (stderr, - "%s: spin must contain only the characters X, Y, or Z (not \"%s\")\n", - progname, do_spin); - exit (1); - } - s++; - } - - s = do_style; + char *s = do_style; if (!s || !*s || !strcasecmp (s, "classic")) bp->style = CLASSIC; else if (!strcasecmp (s, "giant")) bp->style = GIANT; else if (!strcasecmp (s, "cone")) bp->style = CONE;