aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti2008-05-03 22:05:17 +0000
committerVicent Marti2008-05-03 22:05:17 +0000
commite5929da662dd328ea6ff46194d4cfae8eedec5a7 (patch)
tree0890acdec33f8ffbb8d4c1e9d57a72b1739ca01d
parenteb411d298aff4a062ed9d429a013e4687b6dc541 (diff)
downloadscummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.tar.gz
scummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.tar.bz2
scummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.zip
Coding conventions once again.
svn-id: r31850
-rw-r--r--graphics/VectorRenderer.cpp16
-rw-r--r--graphics/VectorRenderer.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp
index 391b0c2873..0897e530bb 100644
--- a/graphics/VectorRenderer.cpp
+++ b/graphics/VectorRenderer.cpp
@@ -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 @@ void vector_renderer_test( OSystem *_system ) {
_system->showOverlay();
- while(true) { // draw!!
+ while (true) { // draw!!
vr->setColor(255, 255, 255);
vr->fillSurface();
@@ -155,7 +155,7 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) {
gradient = (uint32)(dy << 16) / (uint32)dx;
error_acc = 0;
- while(--dx) {
+ while (--dx) {
error_tmp = error_acc;
error_acc += gradient;
@@ -171,7 +171,7 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) {
gradient = (uint32)(dx << 16) / (uint32)dy;
error_acc = 0;
- while(--dy) {
+ while (--dy) {
error_tmp = error_acc;
error_acc += gradient;
@@ -251,7 +251,7 @@ inline uint32 fp_sqroot(uint32 x) {
remHI -= testDIV;
root++;
}
- } while(count--);
+ } while (count--);
return root;
}
@@ -279,8 +279,8 @@ drawCircleAlg(int x1, int y1, int r) {
__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 @@ drawCircleAlg(int x1, int y1, int r) {
__WU_CIRCLE_SIM(x, y, 255);
- while(x > y++)
+ while (x > y++)
{
oldT = T;
T = fp_sqroot(rsq - ((y * y) << 16)) ^ 0xFFFF;
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index d8fb311f30..b5be32e0e1 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -127,7 +127,7 @@ public:
*/
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 @@ public:
*/
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);
}