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.31.tar.gz
[xscreensaver]
/
hacks
/
glx
/
tronbit.c
diff --git
a/hacks/glx/tronbit.c
b/hacks/glx/tronbit.c
index b0ee542e0a672373f60252217cc4b954dfed3c9d..3c82428136a347681f5b1f70416c673bc776a2d4 100644
(file)
--- a/
hacks/glx/tronbit.c
+++ b/
hacks/glx/tronbit.c
@@
-316,10
+316,11
@@
draw_histogram (ModeInfo *mi, GLfloat ratio)
j = bp->histogram_fp + 1;
for (i = 0; i < samples; i++)
{
j = bp->histogram_fp + 1;
for (i = 0; i < samples; i++)
{
- GLfloat x
= i
;
+ GLfloat x
, y, z
;
if (j >= samples) j = 0;
if (j >= samples) j = 0;
- GLfloat y = bp->histogram[j];
- GLfloat z = 0;
+ x = i;
+ y = bp->histogram[j];
+ z = 0;
y += (int) ((random() % 16) - 8);
y += 16; /* margin at bottom of screen */
y += (int) ((random() % 16) - 8);
y += 16; /* margin at bottom of screen */