projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.17.tar.gz
[xscreensaver]
/
hacks
/
flame.c
diff --git
a/hacks/flame.c
b/hacks/flame.c
index 01f16ababa6c235a7e66b03c2781d0992570d9f6..46570ea9194e9a806cf55453619b51f426ea448f 100644
(file)
--- 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)
{
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)
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)
{
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)
{
st->num_points++;
if (st->num_points >= POINT_BUFFER_SIZE)
{