projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver]
/
hacks
/
zoom.c
diff --git
a/hacks/zoom.c
b/hacks/zoom.c
index eb34ee37972d10b28fdebd6556922021ecf6d6ee..8f7364d369279de0556c17b55cd8f32effbf0811 100644
(file)
--- a/
hacks/zoom.c
+++ b/
hacks/zoom.c
@@
-102,7
+102,7
@@
static void init_hack(Display *dpy, Window window)
orig_map = NULL;
pm = XCreatePixmap(dpy, window, sizex, sizey, xgwa.depth);
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);
if (!lenses) {
orig_map = XGetImage(dpy, pm, 0, 0, sizex, sizey, ~0L, ZPixmap);
@@
-138,9
+138,9
@@
static void onestep(Display *dpy, Window window)
now = currentTimeInMs();
/* find new x,y */
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;
* (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) {
* (sizey - s/2) /* -s/4 */ + MINY;
if (lenses) {