[Scummvm-cvs-logs] SF.net SVN: scummvm: [31850] scummvm/branches/gsoc2008-gui/graphics

Tanoku at users.sourceforge.net Tanoku at users.sourceforge.net
Sun May 4 00:05:18 CEST 2008


Revision: 31850
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31850&view=rev
Author:   Tanoku
Date:     2008-05-03 15:05:17 -0700 (Sat, 03 May 2008)

Log Message:
-----------
Coding conventions once again.

Modified Paths:
--------------
    scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.cpp
    scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h

Modified: scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.cpp
===================================================================
--- scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.cpp	2008-05-03 21:57:29 UTC (rev 31849)
+++ scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.cpp	2008-05-03 22:05:17 UTC (rev 31850)
@@ -31,7 +31,7 @@
 
 namespace Graphics {
 
-inline uint32 fp_sqroot( uint32 x );
+inline uint32 fp_sqroot(uint32 x);
 
 VectorRenderer *createRenderer() {
 	return new VectorRendererSpec<uint16,ColorMasks<565> >;
@@ -57,7 +57,7 @@
 
 	_system->showOverlay();
 
-	while(true) { // draw!!
+	while (true) { // draw!!
 
 		vr->setColor(255, 255, 255);
 		vr->fillSurface();
@@ -155,7 +155,7 @@
 		gradient = (uint32)(dy << 16) / (uint32)dx;
 		error_acc = 0;
 
-		while(--dx) {
+		while (--dx) {
 			error_tmp = error_acc;
 			error_acc += gradient;
 
@@ -171,7 +171,7 @@
 		gradient = (uint32)(dx << 16) / (uint32)dy;
 		error_acc = 0;
 
-		while(--dy) {
+		while (--dy) {
 			error_tmp = error_acc;
 			error_acc += gradient;
 
@@ -251,7 +251,7 @@
 			remHI -= testDIV;
 			root++;
 		}
-	} while(count--);
+	} while (count--);
 
 	return root;
 }
@@ -279,8 +279,8 @@
 
 	__CIRCLE_SIM(x,y);
 
-	while(x++ < y) {
-		if(f >= 0) {
+	while (x++ < y) {
+		if (f >= 0) {
 			y--;
 			ddF_y += 2;
 			f += ddF_y;
@@ -314,7 +314,7 @@
 	
 	__WU_CIRCLE_SIM(x, y, 255);
 
-	while(x > y++)
+	while (x > y++)
 	{
 		oldT = T;
 		T = fp_sqroot(rsq - ((y * y) << 16)) ^ 0xFFFF;

Modified: scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h
===================================================================
--- scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h	2008-05-03 21:57:29 UTC (rev 31849)
+++ scummvm/branches/gsoc2008-gui/graphics/VectorRenderer.h	2008-05-03 22:05:17 UTC (rev 31850)
@@ -127,7 +127,7 @@
 	 */
 	virtual void clearSurface() {
 		byte *src = (byte *)_activeSurface->pixels;
-		memset( src, 0, _activeSurface->w * _activeSurface->h * _activeSurface->bytesPerPixel );
+		memset(src, 0, _activeSurface->w * _activeSurface->h * _activeSurface->bytesPerPixel);
 	}
 
 	/**
@@ -208,7 +208,7 @@
 	 */
 	void drawLine(int x1, int x2, int y1, int y2);
 
-	void drawCircle( int x, int y, int r ) {
+	void drawCircle(int x, int y, int r) {
 		drawCircleAlg(x, y, r);
 	}
 


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