X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcritical.c;h=ab3a6f7366e3ca853b6b2031f950dd212e105ef0;hp=6f9fa76061320a06e908cc47a3a003eef3083f5d;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/hacks/critical.c b/hacks/critical.c index 6f9fa760..ab3a6f73 100644 --- a/hacks/critical.c +++ b/hacks/critical.c @@ -216,21 +216,21 @@ setup_colormap (struct state *st, XColor **colors, int *n_colors) if (!strcmp (color_scheme, "random")) { - make_random_colormap (st->dpy, st->wattr.visual, + make_random_colormap (st->wattr.screen, st->wattr.visual, st->wattr.colormap, *colors, n_colors, True, True, &writable, True); } else if (!strcmp (color_scheme, "smooth")) { - make_smooth_colormap (st->dpy, st->wattr.visual, + make_smooth_colormap (st->wattr.screen, st->wattr.visual, st->wattr.colormap, *colors, n_colors, True, &writable, True); } else { - make_uniform_colormap (st->dpy, st->wattr.visual, + make_uniform_colormap (st->wattr.screen, st->wattr.visual, st->wattr.colormap, *colors, n_colors, True, &writable, True); @@ -242,7 +242,7 @@ setup_colormap (struct state *st, XColor **colors, int *n_colors) static void free_colormap (struct state *st, XColor **colors, int n_colors) { - free_colors (st->dpy, st->wattr.colormap, *colors, n_colors); + free_colors (st->wattr.screen, st->wattr.colormap, *colors, n_colors); free (*colors); }