projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.18.tar.gz
[xscreensaver]
/
hacks
/
barcode.c
diff --git
a/hacks/barcode.c
b/hacks/barcode.c
index 61b0c237b76ceecd38452d84eaa3949857ff2473..d6592163f496492db7f104570cbcf0b2bf47bcbf 100644
(file)
--- 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] = (random() % 10) + '0';
s[j++] = '?';
s[j++] = ':';
- s[j
++
] = 0;
+ s[j] = 0;
}
/* change one digit in this barcode */
}
/* 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)
{
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
}
static void