orig_map = NULL;
pm = XCreatePixmap(dpy, window, sizex, sizey, xgwa.depth);
- load_random_image (xgwa.screen, window, pm, NULL);
+ load_random_image (xgwa.screen, window, pm, NULL, NULL);
if (!lenses) {
orig_map = XGetImage(dpy, pm, 0, 0, sizex, sizey, ~0L, ZPixmap);
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) {