projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.ksu.edu.tw/FTP/FreeBSD/distfiles/xscreensaver-4.23.tar.gz
[xscreensaver]
/
hacks
/
spotlight.c
diff --git
a/hacks/spotlight.c
b/hacks/spotlight.c
index b98d54b68fcb2901946ac714db624d9c5d673e11..7137d6614f11ce68e03f85fcb5a213311eb6af64 100644
(file)
--- a/
hacks/spotlight.c
+++ b/
hacks/spotlight.c
@@
-181,9
+181,9
@@
onestep (Display *dpy, Window window, Bool first_p)
now = currentTimeInMs() + off;
/* find new x,y */
now = currentTimeInMs() + off;
/* find new x,y */
- x = ((1 + sin(((
float
)now) / X_PERIOD * 2. * M_PI))/2.0)
+ x = ((1 + sin(((
double
)now) / X_PERIOD * 2. * M_PI))/2.0)
* (sizex - s/2) -s/4 + MINX;
* (sizex - s/2) -s/4 + MINX;
- y = ((1 + sin(((
float
)now) / Y_PERIOD * 2. * M_PI))/2.0)
+ y = ((1 + sin(((
double
)now) / Y_PERIOD * 2. * M_PI))/2.0)
* (sizey - s/2) -s/4 + MINY;
if (!first_p)
* (sizey - s/2) -s/4 + MINY;
if (!first_p)