*
* 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
return make_starfish (st, xgwa.width, xgwa.height, size);
}
return make_starfish (st, xgwa.width, xgwa.height, size);
}
- free_colors (st->dpy, st->cmap, st->colors, st->ncolors);
+ free_colors (xgwa.screen, st->cmap, st->colors, st->ncolors);
- make_smooth_colormap (st->dpy, xgwa.visual, st->cmap, st->colors, &st->ncolors,
+ make_smooth_colormap (xgwa.screen, xgwa.visual, st->cmap,
+ st->colors, &st->ncolors,
- make_uniform_colormap (st->dpy, xgwa.visual, st->cmap, st->colors, &st->ncolors,
+ make_uniform_colormap (xgwa.screen, xgwa.visual, st->cmap,
+ st->colors, &st->ncolors,
flags |= GCFillRule;
gcv.fill_rule = EvenOddRule;
st->gc = XCreateGC (st->dpy, st->window, flags, &gcv);
flags |= GCFillRule;
gcv.fill_rule = EvenOddRule;
st->gc = XCreateGC (st->dpy, st->window, flags, &gcv);
starfish_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
starfish_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{