[cairo-commit] cairo-demo/svgspacewar ChangeLog, 1.6, 1.7 svgspacewar.c, 1.5, 1.6

Behdad Esfahbod commit at pdx.freedesktop.org
Thu Jul 28 21:36:09 PDT 2005


Committed by: behdad

Update of /cvs/cairo/cairo-demo/svgspacewar
In directory gabe:/tmp/cvs-serv27216

Modified Files:
	ChangeLog svgspacewar.c 
Log Message:
2005-06-29  Behdad Esfahbod  <behdad at behdad.org>

        * svgspacewar.c: Use M_PI instead of handcoding $\pi$.



Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/svgspacewar/ChangeLog,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ChangeLog	22 Jun 2005 17:34:25 -0000	1.6
+++ ChangeLog	29 Jul 2005 04:36:07 -0000	1.7
@@ -1,3 +1,7 @@
+2005-06-29  Behdad Esfahbod  <behdad at behdad.org>
+
+	* svgspacewar.c: Use M_PI instead of handcoding $\pi$.
+
 2005-06-22  Carl Worth  <cworth at cworth.org>
 
 	From Nigel Tao <nigel.tao at myrealbox.com>:

Index: svgspacewar.c
===================================================================
RCS file: /cvs/cairo/cairo-demo/svgspacewar/svgspacewar.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- svgspacewar.c	22 Jun 2005 17:34:25 -0000	1.5
+++ svgspacewar.c	29 Jul 2005 04:36:07 -0000	1.6
@@ -15,8 +15,8 @@
 #define WIDTH  800
 #define HEIGHT 600
 
-#define TWO_PI 6.2831853070
-#define PI     3.1415926535
+#define TWO_PI (2*M_PI)
+#define PI     (M_PI)
 
 // trig computations (and x, y, velocity, etc). are made in fixed point arithmetic
 #define FIXED_POINT_SCALE_FACTOR 1024




More information about the cairo-commit mailing list