- if (!st->ncolors)
- {
- st->ncolors = get_integer_resource (st->dpy, "ncolors", "Integer");
- st->delay = get_integer_resource (st->dpy, "delay", "Integer");
- st->delay2 = get_integer_resource (st->dpy, "delay2", "Integer");
- st->iterations = get_integer_resource (st->dpy, "iterations", "Integer");
- if (st->iterations < 0) st->iterations = 0;
- else if (st->iterations > 7) st->iterations = 7;
-
- if (st->ncolors <= 2) st->ncolors = 0;
- if (st->ncolors == 0) mono_p = True;
- if (st->ncolors > 255) st->ncolors = 255; /* too many look bad */
-
- st->gc = XCreateGC (st->dpy, st->window, 0, &gcv);
- st->gc2 = XCreateGC (st->dpy, st->window, 0, &gcv);
- }
+ st->ncolors = get_integer_resource (st->dpy, "ncolors", "Integer");
+ st->delay = get_integer_resource (st->dpy, "delay", "Integer");
+ st->delay2 = get_integer_resource (st->dpy, "delay2", "Integer");
+ st->iterations = get_integer_resource (st->dpy, "iterations", "Integer");
+ if (st->iterations < 0) st->iterations = 0;
+ else if (st->iterations > 7) st->iterations = 7;
+
+ if (st->ncolors <= 2) st->ncolors = 0;
+ if (st->ncolors == 0) mono_p = True;
+ if (st->ncolors > 255) st->ncolors = 255; /* too many look bad */
+
+ if (!st->gc) st->gc = XCreateGC (st->dpy, st->window, 0, &gcv);
+ if (!st->gc2) st->gc2 = XCreateGC (st->dpy, st->window, 0, &gcv);