projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.14.tar.gz
[xscreensaver]
/
hacks
/
flow.c
diff --git
a/hacks/flow.c
b/hacks/flow.c
index b9593df470142f151b657cec07094b2e8987d495..08bd2b046ed7cc723f2865d2d5d109c46f9c5ca7 100644
(file)
--- a/
hacks/flow.c
+++ b/
hacks/flow.c
@@
-1,9
+1,8
@@
/* -*- Mode: C; tab-width: 4 -*- */
/* flow --- flow of strange bees */
/* -*- Mode: C; tab-width: 4 -*- */
/* flow --- flow of strange bees */
-#if
!defined( lint ) && !defined( SABER )
+#if
0
static const char sccsid[] = "@(#)flow.c 4.10 98/04/24 xlockmore";
static const char sccsid[] = "@(#)flow.c 4.10 98/04/24 xlockmore";
-
#endif
/*-
#endif
/*-
@@
-807,7
+806,8
@@
draw_flow(ModeInfo * mi)
double A=0;
for(i=0; i<3; i++) A+=C[j][i]*C[j][i]; /* sum squares */
A=sqrt(A);
double A=0;
for(i=0; i<3; i++) A+=C[j][i]*C[j][i]; /* sum squares */
A=sqrt(A);
- for(i=0; i<3; i++) C[j][i]/=A;
+ if (A != 0) /* #### is this right? */
+ for(i=0; i<3; i++) C[j][i]/=A;
}
/* Interpolate between Center and Trained Bee matrices */
}
/* Interpolate between Center and Trained Bee matrices */