return(current);
}
+#if 0
static void
smoothen(struct state *st, int x, int lastx, int y, int lasty, int size, int last_color, XColor *colors, Display *dpy, Window window, GC bgc, int screen, struct info *info)
{
smoothen(st, newx, x, newy, y, size, last_color, st->colors, st->dpy, st->window, st->bgc, st->screen, st->info);
}
}
+#endif
static void *
{
Bool writable_p = False;
- make_uniform_colormap (st->dpy, st->xgwa.visual, st->xgwa.colormap, st->colors, &st->ncolors, True, &writable_p, True);
+ make_uniform_colormap (st->xgwa.screen, st->xgwa.visual,
+ st->xgwa.colormap, st->colors, &st->ncolors,
+ True, &writable_p, True);
}
if (st->ba) XFillRectangle (st->dpy, st->ba, st->bgc, 0, 0, st->xgwa.width, st->xgwa.height);
st->info->half_width = st->xgwa.width / 2;
st->info->half_height = st->xgwa.height / 2;
st->info->speed = get_integer_resource(st->dpy, "speed" , "Integer");
- st->info->trail = get_integer_resource(st->dpy, "trail", "Integer");
+ st->info->trail = get_boolean_resource(st->dpy, "trail", "Integer");
st->info->color_modifier = get_integer_resource(st->dpy, "color_modifier", "Integer");
st->info->xoffset = get_float_resource(st->dpy, "xoffset", "Float");
st->info->yoffset = get_float_resource(st->dpy, "yoffset", "Float");
static const char *whirlygig_defaults [] = {
".background: black",
".foreground: white",
+ "*fpsSolid: true",
"*xspeed: 1.0",
"*yspeed: 1.0",
"*xamplitude: 1.0",
"*xmode: change",
"*ymode: change",
"*speed: 1",
- "*trail: 0",
+ "*trail: false",
"*color_modifier: -1",
"*start_time: -1",
"*explain: False",
{ "-ymode", ".ymode", XrmoptionSepArg, 0 },
{ "-speed", ".speed", XrmoptionSepArg, 0 },
/* This will modify how often it should draw, changing it will probably suck */
- { "-trail", ".trail", XrmoptionSepArg, 0 },
+ { "-trail", ".trail", XrmoptionNoArg, "True" },
/* Control whether or not you want the old circles to be erased */
{ "-color_modifier", ".color_modifier", XrmoptionSepArg, 0 },
/* How many colors away from the current should the next whirly be? */