http://se.aminet.net/pub/X11/ftp.x.org/contrib/vms/xscreensaver-124.zip
[xscreensaver] / hacks / attraction.c
old mode 100644 (file)
new mode 100755 (executable)
index 1f93781..f5f1c2a
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@lucid.com>
+/* xscreensaver, Copyright (c) 1992 Jamie Zawinski <jwz@mcom.com>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
 #include "spline.h"
 #include <stdio.h>
 #include <math.h>
+#ifdef VMS
+#define M_PI 3.14159265358979323846
+#endif
 #if __STDC__
-#include <values.h>
+#include <math.h>      /* for M_PI */
 #endif
 
 struct ball {
@@ -561,8 +564,8 @@ run_balls (dpy, window)
 char *progclass = "Attraction";
 
 char *defaults [] = {
-  "*background:        black",
-  "*foreground:        white",
+  "Attraction.background:      black",         /* to placate SGI */
+  "Attraction.foreground:      white",
   "*mode:      balls",
   "*points:    0",
   "*size:      0",