X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fstrange.c;h=8343d010aee498c7eb88e9a8ad186ab5fcb1a81a;hp=dce0182eeb88c297d3a5339cc354cc906abb23b0;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/hacks/strange.c b/hacks/strange.c index dce0182e..8343d010 100644 --- a/hacks/strange.c +++ b/hacks/strange.c @@ -607,7 +607,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 +638,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])) {