dtscreen: cosmic flame fractals missing drawing code
authoralx <alx@fastestcode.org>
Fri, 21 Feb 2014 14:21:20 +0000 (15:21 +0100)
committerJon Trulson <jon@radscan.com>
Sun, 23 Feb 2014 02:05:47 +0000 (19:05 -0700)
cde/programs/dtscreen/flame.c

index e4cfbca1bb8bfd3ee269374b2885d07073eb3c92..48e7a0e276b3453ca00e5b5eb97c3b4deaabd977 100644 (file)
@@ -128,6 +128,8 @@ recurse(fs, x, y, l)
            return False;
 
        if (x > -1.0 && x < 1.0 && y > -1.0 && y < 1.0) {
+           fs->pts[fs->num_points].x = (int) ((fs->width / 2) * (x + 1.0));
+           fs->pts[fs->num_points].y = (int) ((fs->height / 2) * (y + 1.0));
            fs->num_points++;
            if (fs->num_points > MAXBATCH) {    /* point buffer size */
                XDrawPoints(dsp, fs->pwin->w, fs->pwin->gc, fs->pts,