http://ftp.x.org/contrib/applications/xscreensaver-2.23.tar.gz
[xscreensaver] / hacks / rd-bomb.c
index 0a7cee75a1ab7949adbb4a294aa55b44d04b6409..867ecf03a2f17680bc40dc521294a6447ff7d909 100644 (file)
@@ -282,8 +282,8 @@ char *progclass = "RD";
 
 
 char *defaults [] = {
-  "RD.background:      black",         /* to placate SGI */
-  "RD.foreground:      white",
+  ".background:        black",
+  ".foreground:        white",
   "*width:     0",                     /* tried to use -1 but it complained */
   "*height:    0",
   "*epoch:     40000",
@@ -371,7 +371,6 @@ screenhack (Display *dpy, Window win)
   char *p;
   int vdepth;
   int npix;
-  int *m = 0;
 #ifdef HAVE_XSHM_EXTENSION
   int use_shm = 0;
   XShmSegmentInfo shm_info;
@@ -442,7 +441,7 @@ screenhack (Display *dpy, Window win)
     int i, di;
     mc = (unsigned char *) malloc(1<<16);
     for (i = 0; i < (1<<16); i++) {
-      di = (i + (ya_random()&255))>>8;
+      di = (i + (random()&255))>>8;
       if (di > 255) di = 255;
       mc[i] = di;
     }