X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fpetri.c;h=97299d65073154fed5362aa9f4db5f08d231182f;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hp=275fb42c83740304dfd2470b93bae72d91028cd5;hpb=07faf451b99879183ed7e909e43a0e065be1ee7f;p=xscreensaver diff --git a/hacks/petri.c b/hacks/petri.c index 275fb42c..97299d65 100644 --- a/hacks/petri.c +++ b/hacks/petri.c @@ -141,7 +141,7 @@ static void setup_random_colormap (struct state *st, XWindowAttributes *xgwa) colors[0].pixel = get_pixel_resource (st->dpy, xgwa->colormap, "background", "Background"); - make_random_colormap (st->dpy, xgwa->visual, xgwa->colormap, + make_random_colormap (xgwa->screen, xgwa->visual, xgwa->colormap, colors+1, &ncolors, True, True, 0, True); if (ncolors < 1) { @@ -243,7 +243,6 @@ static void setup_display (struct state *st) { XWindowAttributes xgwa; - Colormap cmap; int cell_size = get_integer_resource (st->dpy, "size", "Integer"); int osize, alloc_size, oalloc; @@ -398,8 +397,6 @@ setup_display (struct state *st) st->mindeathspeed *= st->diaglim; st->maxdeathspeed *= st->diaglim; - cmap = xgwa.colormap; - st->windowWidth = xgwa.width; st->windowHeight = xgwa.height; @@ -718,6 +715,7 @@ petri_free (Display *dpy, Window window, void *closure) static const char *petri_defaults [] = { ".background: black", ".foreground: white", + "*fpsSolid: true", "*delay: 10000", "*count: 20", "*size: 2", @@ -734,6 +732,9 @@ static const char *petri_defaults [] = { "*originalcolors: false", "*memThrottle: 22M", /* don't malloc more than this much. Scale the pixels up if necessary. */ +#ifdef HAVE_MOBILE + "*ignoreRotation: True", +#endif 0 };