X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Ft3d.c;fp=hacks%2Ft3d.c;h=959d24aff5c6604738963b01bcaaf2b88eee6516;hp=6a7e0cdec898a4a88dca2d7bb758fe7fd08a2956;hb=4361b69d3178d7fc98d0388f9a223af6c2651aba;hpb=d6b0217f2417bd19187f0ebc389d6c5c2233b11c diff --git a/hacks/t3d.c b/hacks/t3d.c index 6a7e0cde..959d24af 100644 --- a/hacks/t3d.c +++ b/hacks/t3d.c @@ -527,7 +527,10 @@ static void fill_kugel(struct state *st, int i, Pixmap buf, int setcol) { double ra; - int m,col,inc=1,inr=3,d; + int m,col,inr=3,d; +#ifdef USE_POLYGON + int inc=1; +#endif d=(int)((ABS(st->kugeln[i].r1)*2)); if (d==0) d=1; @@ -557,10 +560,12 @@ fill_kugel(struct state *st, int i, Pixmap buf, int setcol) #ifdef PRTDBX printf("Radius: %f\n",ra); #endif +#ifdef USE_POLYGON if(-ra< 3.0) inc=14; else if(-ra< 6.0) inc=8; else if(-ra<20.0) inc=4; else if(-ra<40.0) inc=2; +#endif if(setcol) { if (m==27)