http://ftp.x.org/contrib/applications/xscreensaver-3.17.tar.gz
[xscreensaver] / hacks / slip.c
index 395fea1cd37c0d5804d5292ce047cdfb51f63b31..5c51243688fe8cf8740be80e67fd5ff3ddd45db4 100644 (file)
@@ -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),