http://www.jwz.org/xscreensaver/xscreensaver-5.07.tar.gz
[xscreensaver] / hacks / critical.c
index 5669304b374df58b38c1bb18d146c3f88d4b5f45..6f9fa76061320a06e908cc47a3a003eef3083f5d 100644 (file)
@@ -289,7 +289,8 @@ critical_init (Display *dpy, Window window)
      screens. */
   model_w = 80;
   st->settings.cell_size = st->wattr.width / model_w;
-  model_h = st->wattr.height / st->settings.cell_size;
+  model_h = st->settings.cell_size ?
+    st->wattr.height / st->settings.cell_size : 0;
 
   /* Construct the initial model state. */
 
@@ -437,6 +438,7 @@ static XrmOptionDescRec critical_options[] = {
 /* Default xrm resources. */
 static const char *critical_defaults[] = {
   ".background:                        black",
+  "*fpsSolid:                  true",
   "*colorscheme:               smooth",
   "*delay:                     10000", 
   "*ncolors:                   64",