[Scummvm-cvs-logs] SF.net SVN: scummvm:[49625] scummvm/branches/gsoc2010-testbed/engines/ testbed/graphics.cpp
sud03r at users.sourceforge.net
sud03r at users.sourceforge.net
Sun Jun 13 09:55:50 CEST 2010
Revision: 49625
http://scummvm.svn.sourceforge.net/scummvm/?rev=49625&view=rev
Author: sud03r
Date: 2010-06-13 07:55:50 +0000 (Sun, 13 Jun 2010)
Log Message:
-----------
removed obsolete comments
Modified Paths:
--------------
scummvm/branches/gsoc2010-testbed/engines/testbed/graphics.cpp
Modified: scummvm/branches/gsoc2010-testbed/engines/testbed/graphics.cpp
===================================================================
--- scummvm/branches/gsoc2010-testbed/engines/testbed/graphics.cpp 2010-06-13 07:49:36 UTC (rev 49624)
+++ scummvm/branches/gsoc2010-testbed/engines/testbed/graphics.cpp 2010-06-13 07:55:50 UTC (rev 49625)
@@ -64,10 +64,8 @@
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 @@
// 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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list