for (x = xmin; x <= xmax; x++)
sp (st, x, ybord, st->bordcol);
for (y = ymin; y <= ymax; y++)
- sp (st, ybord, y, st->bordcol);
+ sp (st, xbord, y, st->bordcol);
}
}
st->mygc = XCreateGC (st->dpy, st->window, 0, &mygcv);
}
- st->point = (unsigned char *) malloc (st->wid * st->hei);
+ st->point = (unsigned char *) calloc (1, st->wid * st->hei);
maininit (st);
palupdate (st, True);
consume_instring(st);
vermiculate_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->wid = w;
+ st->hei = h;
+ free (st->point);
+ st->point = (unsigned char *) calloc (1, st->wid * st->hei);
}
static Bool