One more update to previous two commits. Forgot a '#include'.
[screensavers] / hacks / WolframAutomata / screenshot_notes.md
index 61cdbd4..b33ed16 100644 (file)
@@ -5,6 +5,10 @@ ImageMagick.
 First, to generate an XPM screenshot on each frame, make the following code
 modifications to `WolframAutomata.c`.
 
+Add to top of file:
+
+    #include <X11/xpm.h>
+
 Add to `struct state`:
 
     int framenumber;
@@ -25,6 +29,8 @@ In `WolframAutomata_draw()`, toward the end, right before returning:
     state->framenumber++;
     XFreePixmap(state->dpy, temp);
 
+Now recompile after adding `-lXpm` to the linker flags in the `Makefile`.
+
 Deleting every other frame had negligible visual impact, so all odd number
 frames were deleted to shrink file size of the resulting animation.