X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fspotlight.c;h=7137d6614f11ce68e03f85fcb5a213311eb6af64;hp=b98d54b68fcb2901946ac714db624d9c5d673e11;hb=0d6b320def9180cf907ceaed56b23a972a11b757;hpb=3f438031d610c7e15fd33876a879b97e290e05fb diff --git a/hacks/spotlight.c b/hacks/spotlight.c index b98d54b6..7137d661 100644 --- 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 */ - 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; - 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)