X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fbarcode.c;h=d6592163f496492db7f104570cbcf0b2bf47bcbf;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=cde87e40309db5b9a94ddc7d00c97da79447c4e7;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/barcode.c b/hacks/barcode.c index cde87e40..d6592163 100644 --- a/hacks/barcode.c +++ b/hacks/barcode.c @@ -1728,7 +1728,7 @@ static void updateGrid (struct state *st) s[j] = (random() % 10) + '0'; s[j++] = '?'; s[j++] = ':'; - s[j++] = 0; + s[j] = 0; } /* change one digit in this barcode */ @@ -1898,6 +1898,9 @@ static void barcode_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->windowWidth = w; + st->windowHeight = h; } static void @@ -1911,6 +1914,7 @@ barcode_free (Display *dpy, Window window, void *closure) static const char *barcode_defaults [] = { ".background: black", ".foreground: green", + "*fpsSolid: true", "*delay: 10000", "*mode: scroll", 0