X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Frocks.c;h=e1db24ba20b5339e34da54666de3d7fa0178cd7d;hb=65740e2a8dea3d6309ae6e8914a0fb79e993ada8;hp=e97e6df39228293a065158ce3be3cee8183d54b1;hpb=88134d551a9911995c013c5ed06a32c2b1044b85;p=xscreensaver diff --git a/hacks/rocks.c b/hacks/rocks.c old mode 100644 new mode 100755 index e97e6df3..e1db24ba --- a/hacks/rocks.c +++ b/hacks/rocks.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 @@ -16,8 +16,11 @@ #include "screenhack.h" #include #include +#ifdef VMS +#define M_PI 3.14159265358979323846 +#endif #if __STDC__ -#include +#include /* for M_PI */ #endif #define MIN_DEPTH 2 /* rocks disappar when they get this close */ @@ -281,8 +284,8 @@ rocks_once () char *progclass = "Rocks"; char *defaults [] = { - "*background: black", - "*foreground: white", + "Rocks.background: black", /* to placate SGI */ + "Rocks.foreground: white", "*count: 100", "*delay: 50000", "*speed: 100",