X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fzoom.c;h=8f7364d369279de0556c17b55cd8f32effbf0811;hp=a2bc5bd81783006553f4e0452fa294d5d32959e2;hb=3f438031d610c7e15fd33876a879b97e290e05fb;hpb=447db08c956099b3b183886729108bf5b364c4b8 diff --git a/hacks/zoom.c b/hacks/zoom.c index a2bc5bd8..8f7364d3 100644 --- a/hacks/zoom.c +++ b/hacks/zoom.c @@ -138,9 +138,9 @@ static void onestep(Display *dpy, Window window) now = currentTimeInMs(); /* find new x,y */ - tlx = ((1. + sin(((float)now) / X_PERIOD * 2. * M_PI))/2.0) + tlx = ((1. + sin(((double)now) / X_PERIOD * 2. * M_PI))/2.0) * (sizex - s/2) /* -s/4 */ + MINX; - tly = ((1. + sin(((float)now) / Y_PERIOD * 2. * M_PI))/2.0) + tly = ((1. + sin(((double)now) / Y_PERIOD * 2. * M_PI))/2.0) * (sizey - s/2) /* -s/4 */ + MINY; if (lenses) {