http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.14.tar.gz
[xscreensaver] / hacks / ifs.c
index 111e5217c30c6f19c7287f1ef0138abc66219091..29a72c23144d59f3d0b93e42ee91ba284fc765dd 100644 (file)
@@ -1,9 +1,8 @@
 /* -*- Mode: C; tab-width: 4 -*- */
 /* ifs --- modified iterated functions system */
 
-#if !defined( lint ) && !defined( SABER )
+#if 0
 static const char sccsid[] = "@(#)ifs.c        5.00 2000/11/01 xlockmore";
-
 #endif
 
 /*-
@@ -331,8 +330,10 @@ Trace(FRACTAL * F, F_PT xo, F_PT yo)
        Cur = Cur_F->Components;
        for (i = Cur_F->Nb_Simi; i; --i, Cur++) {
                Transform(Cur, xo, yo, &x, &y);
-               Buf->x = F->Lx + (x * F->Lx / (UNIT * 2));
-               Buf->y = F->Ly - (y * F->Ly / (UNIT * 2));
+               /* Buf->x = F->Lx + (x * F->Lx / (UNIT * 2)); */
+               /* Buf->y = F->Ly - (y * F->Ly / (UNIT * 2)); */
+        Buf->x = (UNIT * 2 + x) * F->Lx / (UNIT * 2);
+        Buf->y = (UNIT * 2 - y) * F->Ly / (UNIT * 2);
                Buf++;
                Cur_Pt++;