From 6a32252403781b303d4ebd195932ce39c5b1c08e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 30 Jul 2019 16:03:58 +0200 Subject: Update to 5.43 --- hacks/petri.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hacks/petri.c') 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; -- cgit v1.2.3-55-g7522