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
/
vermiculate.c
diff --git
a/hacks/vermiculate.c
b/hacks/vermiculate.c
index c6069e42525b7bbe85fea156fe21948b599c08d6..d1ef57198af245212cfc971fa17e2c4998507e67 100644
(file)
--- a/
hacks/vermiculate.c
+++ b/
hacks/vermiculate.c
@@
-264,7
+264,7
@@
bordupdate (struct state *st)
for (x = xmin; x <= xmax; x++)
sp (st, x, ybord, st->bordcol);
for (y = ymin; y <= ymax; y++)
for (x = xmin; x <= xmax; x++)
sp (st, x, ybord, st->bordcol);
for (y = ymin; y <= ymax; y++)
- sp (st,
y
bord, y, st->bordcol);
+ sp (st,
x
bord, y, st->bordcol);
}
}
}
}
@@
-807,6
+807,11
@@
static void
vermiculate_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
vermiculate_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->wid = w;
+ st->hei = h;
+ free (st->point);
+ st->point = (unsigned char *) calloc (1, st->wid * st->hei);
}
static Bool
}
static Bool