Updated WolframAutomata's simulation speed related CLI flags to match README.
authorAaron Taylor <ataylor@subgeniuskitty.com>
Thu, 10 Jun 2021 22:12:25 +0000 (15:12 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Thu, 10 Jun 2021 22:12:25 +0000 (15:12 -0700)
hacks/WolframAutomata/WolframAutomata.c

index 25816a6..fe3ab1f 100644 (file)
@@ -353,7 +353,7 @@ WolframAutomata_init(Display * dpy, Window win)
         /* the exponent in '2^11'.                                            */
         state->delay_microsec = 1 << ((random() % 3) + 11 + pixel_shift_range);
     } else {
         /* the exponent in '2^11'.                                            */
         state->delay_microsec = 1 << ((random() % 3) + 11 + pixel_shift_range);
     } else {
-        state->delay_microsec = get_integer_resource(state->dpy, "delay-usec", "Integer");
+        state->delay_microsec = get_integer_resource(state->dpy, "delay", "Integer");
     }
     if (state->delay_microsec < 0) state->delay_microsec = 0;
 
     }
     if (state->delay_microsec < 0) state->delay_microsec = 0;
 
@@ -502,7 +502,7 @@ WolframAutomata_draw(Display * dpy, Window win, void * closure)
 }
 
 static const char * WolframAutomata_defaults[] = {
 }
 
 static const char * WolframAutomata_defaults[] = {
-    "*delay-usec:         25000",
+    "*delay:              25000",
     "*admiration-delay:   5",
     "*length:             5000",
     "*cell-size:          2",
     "*admiration-delay:   5",
     "*length:             5000",
     "*cell-size:          2",
@@ -518,7 +518,7 @@ static const char * WolframAutomata_defaults[] = {
 };
 
 static XrmOptionDescRec WolframAutomata_options[] = {
 };
 
 static XrmOptionDescRec WolframAutomata_options[] = {
-    { "-delay-usec",         ".delay-usec",             XrmoptionSepArg, 0      },
+    { "-delay",              ".delay",                  XrmoptionSepArg, 0      },
     { "-admiration-delay",   ".admiration-delay",       XrmoptionSepArg, 0      },
     { "-length",             ".length",                 XrmoptionSepArg, 0      },
     { "-cell-size",          ".cell-size",              XrmoptionSepArg, 0      },
     { "-admiration-delay",   ".admiration-delay",       XrmoptionSepArg, 0      },
     { "-length",             ".length",                 XrmoptionSepArg, 0      },
     { "-cell-size",          ".cell-size",              XrmoptionSepArg, 0      },