projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.jwz.org/xscreensaver/xscreensaver-5.09.tar.gz
[xscreensaver]
/
hacks
/
popsquares.c
diff --git
a/hacks/popsquares.c
b/hacks/popsquares.c
index 6c26165f6dc4cc6fdad76194c421b8d4e225c9fa..0bea52ef6c9145aff1b4043d9bf2538d6b76b983 100644
(file)
--- a/
hacks/popsquares.c
+++ b/
hacks/popsquares.c
@@
-83,8
+83,8
@@
popsquares_init (Display *dpy, Window window)
st->sw = st->xgwa.width / st->subdivision;
st->sh = st->xgwa.height / st->subdivision;
st->sw = st->xgwa.width / st->subdivision;
st->sh = st->xgwa.height / st->subdivision;
- st->gw = st->
xgwa.width / st->sw
;
- st->gh = st->
xgwa.height / st->sh
;
+ st->gw = st->
sw ? st->xgwa.width / st->sw : 0
;
+ st->gh = st->
sh ? st->xgwa.height / st->sh : 0
;
st->nsquares = st->gw * st->gh;
gcv.foreground = fg.pixel;
st->nsquares = st->gw * st->gh;
gcv.foreground = fg.pixel;