From 8af0d35a5ff17e8e4f52401a0758cf6f04e0e17a Mon Sep 17 00:00:00 2001 From: md5 Date: Sat, 19 Mar 2011 02:32:53 +0200 Subject: TESTBED: Changed usage of PI to M_PI (normally defined in math.h) --- engines/testbed/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp index 3cdff5f432..588aad8248 100644 --- a/engines/testbed/graphics.cpp +++ b/engines/testbed/graphics.cpp @@ -360,7 +360,7 @@ void GFXtests::drawEllipse(int cx, int cy, int a, int b) { // Illuminate the points lying on ellipse - for (theta = 0; theta <= PI / 2; theta += PI / 360) { + for (theta = 0; theta <= M_PI / 2; theta += M_PI / 360) { x = (int)(b * sin(theta) + 0.5); y = (int)(a * cos(theta) + 0.5); -- cgit v1.2.3