From: Aaron Taylor Date: Sun, 14 Mar 2021 08:12:44 +0000 (-0800) Subject: Correctly store pointer to new state struct with screenhack framework on window resiz... X-Git-Url: http://git.subgeniuskitty.com/screensavers/.git/commitdiff_plain/b0ea929b28bd7492ffea52e889bebbdb8ff2070c Correctly store pointer to new state struct with screenhack framework on window resize events. --- diff --git a/hacks/WolframAutomata/WolframAutomata.c b/hacks/WolframAutomata/WolframAutomata.c index 5349b1a..1dac50e 100644 --- a/hacks/WolframAutomata/WolframAutomata.c +++ b/hacks/WolframAutomata/WolframAutomata.c @@ -249,7 +249,7 @@ static void WolframAutomata_reshape(Display * dpy, Window win, void * closure, unsigned int w, unsigned int h) { WolframAutomata_free(dpy, win, closure); - WolframAutomata_init(dpy, win); + closure = WolframAutomata_init(dpy, win); } XSCREENSAVER_MODULE ("1D Nearest-Neighbor Cellular Automata", WolframAutomata)