projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.tienza.es/crux/src/www.jwz.org/xscreensaver/xscreensaver-5.06.tar.gz
[xscreensaver]
/
hacks
/
glx
/
circuit.c
diff --git
a/hacks/glx/circuit.c
b/hacks/glx/circuit.c
index 9e8f2dcf0b6cf8515e8e286da9fcadf675579aa9..123bc7e63e00ef62a78af35ed539b3f545e7b1eb 100644
(file)
--- a/
hacks/glx/circuit.c
+++ b/
hacks/glx/circuit.c
@@
-104,7
+104,7
@@
ModStruct circuit_description =
#endif
#endif
-#define MAX_COMPONENTS
3
0
+#define MAX_COMPONENTS
40
0
#define MOVE_MULT 0.02
static float f_rand(void)
#define MOVE_MULT 0.02
static float f_rand(void)
@@
-2155,6
+2155,9
@@
Circuit *ci;
ci->grid_col2[1] = 0.125;
ci->grid_col2[2] = 0.05;
ci->grid_col2[1] = 0.125;
ci->grid_col2[2] = 0.05;
+ if (maxparts >= MAX_COMPONENTS)
+ maxparts = MAX_COMPONENTS-1;
+
if ((ci->glx_context = init_GL(mi)) != NULL) {
reshape_circuit(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
} else {
if ((ci->glx_context = init_GL(mi)) != NULL) {
reshape_circuit(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
} else {