X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fcritical.c;h=5a6fae2a8014324eb9422a0cc53a6befb3801e3f;hp=1e8f3a1ab19731ca7283f51a35402ef7647581a7;hb=a94197e76a5dea5cb60542840809d6c20d0abbf3;hpb=8eb2873d7054e705c4e83f22d18c40946a9e2529 diff --git a/hacks/critical.c b/hacks/critical.c index 1e8f3a1a..5a6fae2a 100644 --- a/hacks/critical.c +++ b/hacks/critical.c @@ -199,8 +199,8 @@ setup_colormap (Display *dpy, XWindowAttributes *wattr, /* Make a colormap */ *n_colors = get_integer_resource ("ncolors", "Integer"); - if (*n_colors < 2) - *n_colors = 2; + if (*n_colors < 3) + *n_colors = 3; *colors = (XColor *) calloc (sizeof(XColor), *n_colors); if (!*colors) @@ -384,11 +384,3 @@ screenhack (Display *dpy, Window window) i_restart = (i_restart + 1) % n_restart; } } - - -/* - * Local variables: - * c-indent-mode: gnu - * compile-command "make critical && ./critical" - * End: - */