projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://se.aminet.net/pub/Linux/distributions/slackware/slackware-10.1/source/xap...
[xscreensaver]
/
hacks
/
rd-bomb.c
diff --git
a/hacks/rd-bomb.c
b/hacks/rd-bomb.c
index e380c2711ff35fb3ad3afef57221e707019b006c..071786a0511f85b05b16b54063cb190b1b49755a 100644
(file)
--- a/
hacks/rd-bomb.c
+++ b/
hacks/rd-bomb.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1992, 1995, 1997, 1998, 1999
+/* xscreensaver, Copyright (c) 1992, 1995, 1997, 1998, 1999
, 2003
* Jamie Zawinski <jwz@jwz.org>
*
* reaction/diffusion textures
* Jamie Zawinski <jwz@jwz.org>
*
* reaction/diffusion textures
@@
-139,10
+139,10
@@
pixack_frame(char *pix_buf)
if (!(frame%epoch_time)) {
int s;
if (0 != frame) {
if (!(frame%epoch_time)) {
int s;
if (0 != frame) {
- int t = epoch_time / 500;
- if (t > 15)
- t = 15;
- sleep(t);
+ int t
t
= epoch_time / 500;
+ if (t
t
> 15)
+ t
t
= 15;
+ sleep(t
t
);
}
for (i = 0; i < npix; i++) {
}
for (i = 0; i < npix; i++) {
@@
-379,7
+379,7
@@
screenhack (Display *dpy, Window win)
double array_x, array_y;
double array_dx, array_dy;
int w2;
double array_x, array_y;
double array_dx, array_dy;
int w2;
- char *p;
+ char *p
d
;
int vdepth;
int npix;
#ifdef HAVE_XSHM_EXTENSION
int vdepth;
int npix;
#ifdef HAVE_XSHM_EXTENSION
@@
-497,8
+497,8
@@
screenhack (Display *dpy, Window win)
}
}
}
}
- p = malloc(npix * (pdepth == 1 ? 1 : (pdepth / 8)));
- if (!p) {
+ p
d
= malloc(npix * (pdepth == 1 ? 1 : (pdepth / 8)));
+ if (!p
d
) {
fprintf(stderr, "not enough memory for %d pixels.\n", npix);
exit(1);
}
fprintf(stderr, "not enough memory for %d pixels.\n", npix);
exit(1);
}
@@
-514,8
+514,8
@@
screenhack (Display *dpy, Window win)
use_shm = False;
else
{
use_shm = False;
else
{
- free(p);
- p = image->data;
+ free(p
d
);
+ p
d
= image->data;
}
}
#endif /* HAVE_XSHM_EXTENSION */
}
}
#endif /* HAVE_XSHM_EXTENSION */
@@
-523,7
+523,7
@@
screenhack (Display *dpy, Window win)
if (!image)
{
image = XCreateImage(dpy, xgwa.visual, vdepth,
if (!image)
{
image = XCreateImage(dpy, xgwa.visual, vdepth,
- ZPixmap, 0, p,
+ ZPixmap, 0, p
d
,
width, height, 8, 0);
}
width, height, 8, 0);
}
@@
-531,7
+531,7
@@
screenhack (Display *dpy, Window win)
Bool bump = False;
int i, j;
Bool bump = False;
int i, j;
- pixack_frame(p);
+ pixack_frame(p
d
);
for (i = 0; i < array_width; i += width)
for (j = 0; j < array_height; j += height)
#ifdef HAVE_XSHM_EXTENSION
for (i = 0; i < array_width; i += width)
for (j = 0; j < array_height; j += height)
#ifdef HAVE_XSHM_EXTENSION