X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fstrange.c;h=eba88a90c08f7c53c27b5eb55884373b05afe685;hb=ec8d2b32b63649e6d32bdfb306eda062769af823;hp=dce0182eeb88c297d3a5339cc354cc906abb23b0;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7;p=xscreensaver diff --git a/hacks/strange.c b/hacks/strange.c index dce0182e..eba88a90 100644 --- a/hacks/strange.c +++ b/hacks/strange.c @@ -487,6 +487,7 @@ draw_strange(ModeInfo * mi) A->Count = 0; } A->Col++; + mi->recursion_depth = A->Count; } @@ -607,7 +608,7 @@ init_strange(ModeInfo * mi) #define A Attractor if (useAccumulator) { XWindowAttributes xgwa; - int i,j,got_color; + int i,j; XGetWindowAttributes (display, window, &xgwa); /* cmap = xgwa.colormap; */ /* cmap = XCreateColormap(display, window, MI_VISUAL(mi), AllocAll); */ @@ -638,7 +639,7 @@ init_strange(ModeInfo * mi) cols[i].green = 65536*(li-FULLBLUE)/(256-FULLBLUE); cols[i].blue = 65535; } - got_color = XAllocColor (display, xgwa.colormap, &cols[i]); + XAllocColor (display, xgwa.colormap, &cols[i]); /* if (!XAllocColor(MI_DISPLAY(mi), cmap, &cols[i])) { if (!XAllocColor(display, cmap, &cols[i])) {