summaryrefslogtreecommitdiffstats
path: root/hacks/bubbles.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/bubbles.c')
-rw-r--r--hacks/bubbles.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/hacks/bubbles.c b/hacks/bubbles.c
index eefe048..8116e36 100644
--- a/hacks/bubbles.c
+++ b/hacks/bubbles.c
@@ -39,9 +39,10 @@
* Internet E-mail : j-macnicol@adfa.edu.au
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "screenhack.h"
+#include "yarandom.h"
+#include "bubbles.h"
+#include "ximage-loader.h"
#undef DEBUG /* doesn't compile */
@@ -60,11 +61,6 @@
# include <unistd.h>
#endif
-#include "screenhack.h"
-#include "yarandom.h"
-#include "bubbles.h"
-#include "ximage-loader.h"
-
#define FANCY_BUBBLES
/*
@@ -157,9 +153,9 @@ calc_bubble_area(struct state *st, int r)
10.0 * PI * (double)r * (double)r * (double)r);
#endif /* DEBUG */
if (st->threed)
- return (long)(10.0 * PI * (double)r * (double)r * (double)r);
+ return (long)(10.0 * M_PI * (double)r * (double)r * (double)r);
else
- return (long)(10.0 * PI * (double)r * (double)r);
+ return (long)(10.0 * M_PI * (double)r * (double)r);
}
static void *