X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fslip.c;h=5c51243688fe8cf8740be80e67fd5ff3ddd45db4;hb=8eb2873d7054e705c4e83f22d18c40946a9e2529;hp=91694e93e994b332d606655d6ecb4e7e1eb15173;hpb=ce3185de9d9705e259f2b60dd4b5509007fa17d4;p=xscreensaver diff --git a/hacks/slip.c b/hacks/slip.c index 91694e93..5c512436 100644 --- a/hacks/slip.c +++ b/hacks/slip.c @@ -128,13 +128,14 @@ prepare_screen(ModeInfo * mi, slipstruct * s) for (i = 0; i < n; i++) { int ww = ((w/2) + halfrandom(w)); - if (not_solid) + if (not_solid) { if (MI_NPIXELS(mi) > 2) XSetForeground(display, gc, MI_PIXEL(mi, halfrandom(MI_NPIXELS(mi)))); else if (halfrandom(2)) XSetForeground(display, gc, MI_WIN_WHITE_PIXEL(mi)); else XSetForeground(display, gc, MI_WIN_BLACK_PIXEL(mi)); + } XFillRectangle(display, MI_WINDOW(mi), gc, halfrandom(s->width - ww), halfrandom(s->height - ww), @@ -196,7 +197,7 @@ draw_slip(ModeInfo * mi) double x, y, dx = 0, dy = 0, t, s1, s2; if (0 == s->nblits_remaining--) { - static lut[] = + static int lut[] = {0, 0, 0, 1, 1, 1, 2}; prepare_screen(mi, s);