X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fwhirlygig.c;h=523fcc436af2b20c28bda14a474239071ee575bd;hp=d46fcb6f9505d27b4ae25e6d4fac178678127c10;hb=96bdd7cf6ea60c418a76921acaf0e34d6f5be930;hpb=6cee540bdbb571485cd5e519f89f389faebd0495 diff --git a/hacks/whirlygig.c b/hacks/whirlygig.c index d46fcb6f..523fcc43 100644 --- a/hacks/whirlygig.c +++ b/hacks/whirlygig.c @@ -26,7 +26,7 @@ #define END_ARC 23040 struct info { - Bool writable; /* Is the screen writable */ +/* Bool writable; / * Is the screen writable */ double xspeed; /* A factor to modify the horizontal movement */ double yspeed; /* A factor to modify vertical movement */ double xamplitude; @@ -432,14 +432,17 @@ screenhack (Display *display, Window window) fgc = XCreateGC (display, b, GCForeground, &gcv); gcv.foreground = get_pixel_resource("background", "Background", display, xgwa.colormap); bgc = XCreateGC (display, b, GCForeground, &gcv); - make_uniform_colormap (display, xgwa.visual, xgwa.colormap, colors, &ncolors, True, &info->writable, True); + { + Bool writable_p = False; + make_uniform_colormap (display, xgwa.visual, xgwa.colormap, colors, &ncolors, True, &writable_p, True); + } if (ba) XFillRectangle (display, ba, bgc, 0, 0, xgwa.width, xgwa.height); /* info is a structure holding all the random pieces of information I may want to pass to my baby functions -- much of it I may never use, but it is nice to have around just in case I want it to make a funky function funkier */ - info->writable = get_boolean_resource ("cycle", "Boolean"); +/* info->writable = get_boolean_resource ("cycle", "Boolean"); */ info->xspeed = get_float_resource("xspeed" , "Float"); info->yspeed = get_float_resource("yspeed" , "Float"); info->xamplitude = get_float_resource("xamplitude", "Float"); @@ -663,7 +666,7 @@ screenhack (Display *display, Window window) else current_time = current_time + info->speed; screenhack_handle_events(display); - if (!info->writable) +/* if (!info->writable) */ usleep(10000); } /* End the while loop! */ free(info);