ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.27.tar.Z
[xscreensaver] / hacks / blitspin.c
index df7ce8aeeb840bc6aeb188ea38a4bfcbd74603e2..9a72b302d7ccba7d496877a921f85cd3a291a8b9 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@lucid.com>
+/* xscreensaver, Copyright (c) 1992-1996 Jamie Zawinski <jwz@netscape.com>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -97,6 +97,12 @@ read_bitmap (bitmap_name, widthP, heightP)
   int result;
   xpmattrs.valuemask = 0;
   bitmap = 0;
+
+#ifdef XpmCloseness
+  xpmattrs.valuemask |= XpmCloseness;
+  xpmattrs.closeness = 40000;
+#endif
+
   result = XpmReadFileToPixmap (dpy, window, bitmap_name, &bitmap, 0,
                                &xpmattrs);
   switch (result)
@@ -242,8 +248,8 @@ display (pixmap)
 char *progclass = "BlitSpin";
 
 char *defaults [] = {
-  "*background:        black",
-  "*foreground:        white",
+  "BlitSpin.background:        black",         /* to placate SGI */
+  "BlitSpin.foreground:        white",
   "*delay:     500000",
   "*delay2:    500000",
   "*bitmap:    (default)",