From bd2598bc8a0308a47b1b3425542219d1e6ffe84f Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 10 Jul 2017 11:24:00 -0400 Subject: [PATCH] gr-sim: fix kaleido to compile again variable name confusion --- gr-sim/kaleido.c | 56 +++++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/gr-sim/kaleido.c b/gr-sim/kaleido.c index 33b65bca..199c0789 100644 --- a/gr-sim/kaleido.c +++ b/gr-sim/kaleido.c @@ -8,7 +8,7 @@ #include "gr-sim.h" static int r[11]; -static int x,y,j,a,b,x2,y2,n; +static int xx,yy,j,aa,b,x2,y2,n; static void tooo(void) { @@ -19,42 +19,44 @@ static void tooo(void) { } static void noo(void) { - int t,w; + //int t; + int w; // 900 color_equals(r[0]); - basic_plot(x,y); + basic_plot(xx,yy); grsim_update(); if (j==1) return; // 920 w=j/2; - t=j-w-1; + //t=j-w-1; + // 930 for(n=1;n<=w;n++) { - if (x==a) { - y2=y; x2=x+n; tooo(); - x2=x-n; tooo(); + if (xx==aa) { + y2=yy; x2=xx+n; tooo(); + x2=xx-n; tooo(); continue; } - if (y==b) { - x2=x; y2=y+n; tooo(); - y2=y-n; tooo(); + if (yy==b) { + x2=xx; y2=yy+n; tooo(); + y2=yy-n; tooo(); continue; } - y2=y; - if (x