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.36.tar.gz
[xscreensaver]
/
hacks
/
epicycle.c
diff --git
a/hacks/epicycle.c
b/hacks/epicycle.c
index 288999fa95bbf7220b50769c69d3d950a3600db3..91a47a28ee93489cca060e3f2dce3795595cf5e3 100644
(file)
--- a/
hacks/epicycle.c
+++ b/
hacks/epicycle.c
@@
-65,7
+65,7
@@
static const char *epicycle_defaults [] = {
"*divisorPoisson: 0.4",
"*sizeFactorMin: 1.05",
"*sizeFactorMax: 2.05",
"*divisorPoisson: 0.4",
"*sizeFactorMin: 1.05",
"*sizeFactorMax: 2.05",
-#ifdef
USE_IPHON
E
+#ifdef
HAVE_MOBIL
E
"*ignoreRotation: True",
#endif
0
"*ignoreRotation: True",
#endif
0
@@
-723,7
+723,7
@@
epicycle_draw (Display *dpy, Window window, void *closure)
st->L = compute_divisor_lcm(st->pb0->epicycles);
st->L = compute_divisor_lcm(st->pb0->epicycles);
- st->colour_cycle_rate =
f
abs(st->L);
+ st->colour_cycle_rate =
l
abs(st->L);
st->xtime = fabs(st->L * st->circle / st->wdot_max);
st->xtime = fabs(st->L * st->circle / st->wdot_max);
@@
-764,7
+764,7
@@
static Bool
epicycle_event (Display *dpy, Window window, void *closure, XEvent *e)
{
struct state *st = (struct state *) closure;
epicycle_event (Display *dpy, Window window, void *closure, XEvent *e)
{
struct state *st = (struct state *) closure;
- if (
e->type == ButtonPress
)
+ if (
screenhack_event_helper (dpy, window, e)
)
{
st->restart = 1;
return True;
{
st->restart = 1;
return True;