- npoly = get_integer_resource("poly", "Integer");
- if (npoly <= 2) npoly = 2;
- if (npoly > MAXPOLY) npoly = MAXPOLY;
- get_geom (dpy, window);
- max_spread = get_integer_resource ("spread", "Integer");
- if (max_spread <= 0) max_spread = 10;
- max_spread <<= SCALE;
- max_size = get_integer_resource ("size", "Integer");
- if (max_size < 0) max_size = 0;
- max_size <<= SCALE;
- random_p = get_boolean_resource ("random", "Boolean");
- solid_p = get_boolean_resource ("solid", "Boolean");
- xor_p = get_boolean_resource ("xor", "Boolean");
- transparent_p = get_boolean_resource ("transparent", "Boolean");
- gravity_p = get_boolean_resource("gravity", "Boolean");
- delay = get_integer_resource ("delay", "Integer");
- color_shift = get_integer_resource ("colorShift", "Integer");
- if (color_shift < 0 || color_shift >= 360) color_shift = 5;
- if (delay < 0) delay = 0;
+ st->npoly = get_integer_resource(st->dpy, "poly", "Integer");
+ if (st->npoly <= 2) st->npoly = 2;
+ if (st->npoly > MAXPOLY) st->npoly = MAXPOLY;
+ get_geom (st);
+ st->max_spread = get_integer_resource (st->dpy, "spread", "Integer");
+ if (st->max_spread <= 0) st->max_spread = 10;
+ st->max_spread <<= SCALE;
+ st->max_size = get_integer_resource (st->dpy, "size", "Integer");
+ if (st->max_size < 0) st->max_size = 0;
+ st->max_size <<= SCALE;
+ st->random_p = get_boolean_resource (st->dpy, "random", "Boolean");
+ st->solid_p = get_boolean_resource (st->dpy, "solid", "Boolean");
+ st->xor_p = get_boolean_resource (st->dpy, "xor", "Boolean");
+ st->transparent_p = get_boolean_resource (st->dpy, "transparent", "Boolean");
+ st->gravity_p = get_boolean_resource(st->dpy, "gravity", "Boolean");
+ st->delay = get_integer_resource (st->dpy, "delay", "Integer");
+ st->color_shift = get_integer_resource (st->dpy, "colorShift", "Integer");
+ if (st->color_shift < 0 || st->color_shift >= 360) st->color_shift = 5;
+ if (st->delay < 0) st->delay = 0;