X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fwhirlygig.c;h=5ae36ed0e2c6f7c1ef43a6758361086f53258bcb;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hp=95108684e3c673fb0f7de839ade5825af993c2a2;hpb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;p=xscreensaver diff --git a/hacks/whirlygig.c b/hacks/whirlygig.c index 95108684..5ae36ed0 100644 --- a/hacks/whirlygig.c +++ b/hacks/whirlygig.c @@ -307,6 +307,7 @@ static int preen(int current, int max) { 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) { @@ -327,6 +328,7 @@ smoothen(struct state *st, int x, int lastx, int y, int lasty, int size, int las smoothen(st, newx, x, newy, y, size, last_color, st->colors, st->dpy, st->window, st->bgc, st->screen, st->info); } } +#endif static void * @@ -387,7 +389,9 @@ whirlygig_init (Display *dpy, Window window) { 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);