X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fattraction.c;h=f5f1c2af773e7dd517574b4fdf8cb3628980ad56;hb=65740e2a8dea3d6309ae6e8914a0fb79e993ada8;hp=1f93781df3673ac485d603044339651813930eda;hpb=88134d551a9911995c013c5ed06a32c2b1044b85;p=xscreensaver diff --git a/hacks/attraction.c b/hacks/attraction.c old mode 100644 new mode 100755 index 1f93781d..f5f1c2af --- a/hacks/attraction.c +++ b/hacks/attraction.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -38,8 +38,11 @@ #include "spline.h" #include #include +#ifdef VMS +#define M_PI 3.14159265358979323846 +#endif #if __STDC__ -#include +#include /* 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",