aboutsummaryrefslogtreecommitdiff
path: root/engines/testbed
diff options
context:
space:
mode:
authorNeeraj Kumar2010-06-13 07:55:50 +0000
committerNeeraj Kumar2010-06-13 07:55:50 +0000
commit0bd7bf32cac760c59e2a7a140b8ee46a795465ce (patch)
treecca88f719175c74ee3483d66c970f0d91126822c /engines/testbed
parent12b591ed4619330adc430f61193cc1caaca702bd (diff)
downloadscummvm-rg350-0bd7bf32cac760c59e2a7a140b8ee46a795465ce.tar.gz
scummvm-rg350-0bd7bf32cac760c59e2a7a140b8ee46a795465ce.tar.bz2
scummvm-rg350-0bd7bf32cac760c59e2a7a140b8ee46a795465ce.zip
removed obsolete comments
svn-id: r49625
Diffstat (limited to 'engines/testbed')
-rw-r--r--engines/testbed/graphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 82735bca5d..229c06c9ac 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -64,10 +64,8 @@ void GFXTestSuite::execute() {
void GFXtests::drawEllipse(int cx, int cy, int a, int b) {
- // top-left coordinates of rectangle enclosing the eclipse (cx - a, cy - a)
- // length = width = 2a
- // size of buffer = 4 * a * a
-
+ // Take a buffer of screen size
+
byte buffer[200][320] = {{0}};
float theta;
int x, y, x1, y1;
@@ -75,6 +73,8 @@ void GFXtests::drawEllipse(int cx, int cy, int a, int b) {
// Illuminate the center
buffer[cx][cy] = 1;
+ // Illuminate the points lying on ellipse
+
for (theta = 0; theta <= PI / 2; theta += PI / 360 ) {
x = (int)(b * sin(theta) + 0.5);
y = (int)(a * cos(theta) + 0.5);
@@ -153,7 +153,7 @@ bool GFXtests::aspectRatio() {
Testsuite::displayMessage("Testing Aspect Ratio Correction.\n"
"With this feature enabled games running at 320x200 should be scaled upto 320x240 pixels");
- // Draw a circle on the screen
+ // Draw an ellipse on the screen
drawEllipse(100, 160, 72, 60);