X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ftronbit.c;fp=hacks%2Fglx%2Ftronbit.c;h=3c82428136a347681f5b1f70416c673bc776a2d4;hp=b0ee542e0a672373f60252217cc4b954dfed3c9d;hb=d5186197bc394e10a4402f7f6d23fbb14103bc50;hpb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e diff --git a/hacks/glx/tronbit.c b/hacks/glx/tronbit.c index b0ee542e..3c824281 100644 --- 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++) { - GLfloat x = i; + GLfloat x, y, z; 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 */