X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fanemotaxis.c;h=50f35348566189649de37857af8a438fd25ddfda;hp=1f3a859d84de052d4f33ba0f78a911665e177625;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/anemotaxis.c b/hacks/anemotaxis.c index 1f3a859d..50f35348 100644 --- a/hacks/anemotaxis.c +++ b/hacks/anemotaxis.c @@ -379,7 +379,8 @@ anemotaxis_init (Display *disp, Window win) st->ncolors = get_integer_resource (st->dpy, "colors", "Colors"); st->ncolors++; st->colors = (XColor *) malloc(sizeof(*st->colors) * (st->ncolors+1)); - make_random_colormap (st->dpy, wa.visual, wa.colormap, st->colors, &st->ncolors, + make_random_colormap (wa.screen, wa.visual, wa.colormap, + st->colors, &st->ncolors, True, True, 0, True); st->delay = get_integer_resource(st->dpy, "delay", "Integer");