diff options
author | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
commit | 6a32252403781b303d4ebd195932ce39c5b1c08e (patch) | |
tree | cd2f8b3c4052c1b575caf33c9983ae531fad9092 /hacks/petri.c | |
parent | Remove android and OSX files (diff) | |
download | xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.gz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.xz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.zip |
Update to 5.43
Diffstat (limited to 'hacks/petri.c')
-rw-r--r-- | hacks/petri.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hacks/petri.c b/hacks/petri.c index e97c582..1906369 100644 --- a/hacks/petri.c +++ b/hacks/petri.c @@ -245,7 +245,10 @@ setup_display (struct state *st) XWindowAttributes xgwa; int cell_size = get_integer_resource (st->dpy, "size", "Integer"); - int osize, alloc_size, oalloc; + int osize, alloc_size; +#if 0 + int oalloc; +#endif int mem_throttle = 0; char *s; @@ -404,7 +407,9 @@ setup_display (struct state *st) st->arr_height = st->windowHeight / cell_size; alloc_size = sizeof(cell) * st->arr_width * st->arr_height; +# if 0 oalloc = alloc_size; +# endif if (mem_throttle > 0) while (cell_size < st->windowWidth/10 && @@ -419,7 +424,8 @@ setup_display (struct state *st) if (osize != cell_size) { - if (0 && !st->warned) +# if 0 + if (!st->warned) { fprintf (stderr, "%s: throttling cell size from %d to %d because of %dM limit.\n", @@ -432,6 +438,7 @@ setup_display (struct state *st) ((float) alloc_size) / (1 << 20)); st->warned = 1; } +# endif } st->xSize = st->arr_width ? st->windowWidth / st->arr_width : 0; |