X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fflame.c;h=eed6287cefd3a6141475b8100533527789d6fb8a;hb=6f5482d73adb0165c0130bb47d852644ab0c4869;hp=01f16ababa6c235a7e66b03c2781d0992570d9f6;hpb=50be9bb40dc60130c99ffa568e6677779904ff70;p=xscreensaver diff --git a/hacks/flame.c b/hacks/flame.c index 01f16aba..eed6287c 100644 --- a/hacks/flame.c +++ b/hacks/flame.c @@ -173,7 +173,7 @@ flame_init (Display *dpy, Window window) static int recurse (struct state *st, double x, double y, int l, Display *dpy, Window win) { - int /*xp, yp,*/ i; + int i; double nx, ny; if (l == st->max_levels) @@ -184,8 +184,8 @@ recurse (struct state *st, double x, double y, int l, Display *dpy, Window win) if (x > -1.0 && x < 1.0 && y > -1.0 && y < 1.0) { -/* xp = st->points[st->num_points].x = (int) ((st->width / 2) * (x + 1.0)); - yp = st->points[st->num_points].y = (int) ((st->height / 2) * (y + 1.0));*/ + st->points[st->num_points].x = (int) ((st->width / 2) * (x + 1.0)); + st->points[st->num_points].y = (int) ((st->height / 2) * (y + 1.0)); st->num_points++; if (st->num_points >= POINT_BUFFER_SIZE) { @@ -434,6 +434,9 @@ static void flame_reshape (Display *dpy, Window window, void *closure, unsigned int w, unsigned int h) { + struct state *st = (struct state *) closure; + st->width = w; + st->height = h; } static Bool