X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fflame.c;h=46570ea9194e9a806cf55453619b51f426ea448f;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hp=fcc488e51c8f25e7c79e3c5411079ff597f62c7c;hpb=49f5b54f312fe4ac2e9bc47581a72451bd0e8439;p=xscreensaver diff --git a/hacks/flame.c b/hacks/flame.c index fcc488e5..46570ea9 100644 --- a/hacks/flame.c +++ b/hacks/flame.c @@ -1,5 +1,4 @@ -/* xscreensaver, Copyright (c) 1993, 1995, 1996, 1998 - * Jamie Zawinski +/* xscreensaver, Copyright (c) 1993-2008 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -174,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) @@ -185,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) { @@ -413,6 +412,7 @@ int matherr(x) static const char *flame_defaults [] = { ".background: black", ".foreground: white", + "*fpsSolid: true", "*colors: 64", "*iterations: 25", "*delay: 50000",