X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fcritical.c;h=6f9fa76061320a06e908cc47a3a003eef3083f5d;hb=c1b9b55ad8d59dc05ef55e316aebf5863e7dfa56;hp=5669304b374df58b38c1bb18d146c3f88d4b5f45;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/critical.c b/hacks/critical.c index 5669304b..6f9fa760 100644 --- a/hacks/critical.c +++ b/hacks/critical.c @@ -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",