*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
st->ncolors = get_integer_resource (st->dpy, "colors", "Integer");
if (st->ncolors <= 0) st->ncolors = 128;
st->colors = (XColor *) malloc ((st->ncolors+1) * sizeof (*st->colors));
st->ncolors = get_integer_resource (st->dpy, "colors", "Integer");
if (st->ncolors <= 0) st->ncolors = 128;
st->colors = (XColor *) malloc ((st->ncolors+1) * sizeof (*st->colors));
- make_smooth_colormap (st->dpy, xgwa.visual, xgwa.colormap, st->colors, &st->ncolors,
+ make_smooth_colormap (xgwa.screen, xgwa.visual, xgwa.colormap,
+ st->colors, &st->ncolors,
static int
recurse (struct state *st, double x, double y, int l, Display *dpy, Window win)
{
static int
recurse (struct state *st, double x, double y, int l, Display *dpy, Window win)
{
-/* xp = st->points[st->num_points].x = (int) ((st->width / 2) * (x + 1.0));
- yp = st->points[st->num_points].y = (int) ((st->height / 2) * (y + 1.0));*/
+ st->points[st->num_points].x = (int) ((st->width / 2) * (x + 1.0));
+ st->points[st->num_points].y = (int) ((st->height / 2) * (y + 1.0));
flame_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
flame_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
}
static Bool
flame_event (Display *dpy, Window window, void *closure, XEvent *event)
{
}
static Bool
flame_event (Display *dpy, Window window, void *closure, XEvent *event)
{