projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-3.06.tar.gz
[xscreensaver]
/
hacks
/
distort.c
diff --git
a/hacks/distort.c
b/hacks/distort.c
index 7eed6281c8b9c4d3ecef180c77956506ae080fd9..dc8852d01cf79db38b4f22763288c675447fa524 100644
(file)
--- a/
hacks/distort.c
+++ b/
hacks/distort.c
@@
-432,8
+432,8
@@
void reflect_draw(int k)
else {
int x = xy_coo[k].x + cx + (lx * rsq / dist);
int y = xy_coo[k].y + cy + (ly * rsq / dist);
else {
int x = xy_coo[k].x + cx + (lx * rsq / dist);
int y = xy_coo[k].y + cy + (ly * rsq / dist);
- if (x < 0 || x > xgwa.width ||
- y < 0 || y > xgwa.height)
+ if (x < 0 || x >
=
xgwa.width ||
+ y < 0 || y >
=
xgwa.height)
XPutPixel( buffer_map, j, i, black_pixel );
else
XPutPixel( buffer_map, j, i,
XPutPixel( buffer_map, j, i, black_pixel );
else
XPutPixel( buffer_map, j, i,
@@
-592,7
+592,8
@@
void screenhack(Display *dpy, Window window)
draw(k);
}
draw(k);
}
- XSync(dpy, True);
+ XSync(dpy, False);
+ screenhack_handle_events (dpy);
if (delay) usleep(delay);
}
if (delay) usleep(delay);
}