projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-5.01.tar.gz
[xscreensaver]
/
hacks
/
twang.c
diff --git
a/hacks/twang.c
b/hacks/twang.c
index ce22944fca1c22b38cceacb54a1030f856961813..79bbd8f735b6b10cfef31bdc595e2e96a001c9a0 100644
(file)
--- a/
hacks/twang.c
+++ b/
hacks/twang.c
@@
-554,8
+554,8
@@
static void setupModel (struct state *st)
st->tileSize = st->windowHeight / 2;
}
st->tileSize = st->windowHeight / 2;
}
- st->columns = st->
windowWidth / st->tileSize
;
- st->rows = st->
windowHeight / st->tileSize
;
+ st->columns = st->
tileSize ? st->windowWidth / st->tileSize : 0
;
+ st->rows = st->
tileSize ? st->windowHeight / st->tileSize : 0
;
if ((st->maxColumns != 0) && (st->columns > st->maxColumns))
{
if ((st->maxColumns != 0) && (st->columns > st->maxColumns))
{