X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fkaleidescope.c;h=87a823604a198c8c4489b26ef9bb4ed84593956e;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=c2b11ec1db552b91e7de457a3816d8993be5d620;hpb=07faf451b99879183ed7e909e43a0e065be1ee7f;p=xscreensaver diff --git a/hacks/kaleidescope.c b/hacks/kaleidescope.c index c2b11ec1..87a82360 100644 --- a/hacks/kaleidescope.c +++ b/hacks/kaleidescope.c @@ -84,6 +84,7 @@ struct state { static const char *kaleidescope_defaults [] = { ".background: black", ".foreground: white", + "*fpsSolid: true", "*color_mode: nice", "*symmetry: 11", "*ntrails: 100", @@ -99,6 +100,9 @@ static const char *kaleidescope_defaults [] = { "*greenrange: 20000", "*bluemin: 30000", "*bluerange: 20000", +#ifdef HAVE_MOBILE + "*ignoreRotation: True", +#endif 0 }; @@ -125,14 +129,11 @@ static XrmOptionDescRec kaleidescope_options [] = { static void krandom_color(GLOBAL *g, XColor *color) { - int r; - r = random() % 3; - if((g->color_mode == 0) || (g->color_mode == 1)) { - color->blue = ((r = random()) % g->bluerange) + g->bluemin; - color->green = ((r = random()) % g->greenrange) + g->greenmin; - color->red = ((r = random()) % g->redrange) + g->redmin; + color->blue = (random() % g->bluerange) + g->bluemin; + color->green = (random() % g->greenrange) + g->greenmin; + color->red = (random() % g->redrange) + g->redmin; if(!XAllocColor(g->dpy, g->cmap, color)) { color->pixel = g->default_fg_pixel; @@ -430,7 +431,7 @@ init_g (GLOBAL *g) gcv.foreground = get_pixel_resource (g->dpy, g->cmap, "background", "Background"); g->erase_gc = XCreateGC (g->dpy, g->window, GCForeground|GCLineWidth|GCCapStyle,&gcv); -# ifdef HAVE_COCOA +# ifdef HAVE_JWXYZ jwxyz_XSetAntiAliasing (g->dpy, g->draw_gc, False); jwxyz_XSetAntiAliasing (g->dpy, g->erase_gc, False); # endif