diff options
author | Vicent Marti | 2008-05-03 22:05:17 +0000 |
---|---|---|
committer | Vicent Marti | 2008-05-03 22:05:17 +0000 |
commit | e5929da662dd328ea6ff46194d4cfae8eedec5a7 (patch) | |
tree | 0890acdec33f8ffbb8d4c1e9d57a72b1739ca01d /graphics/VectorRenderer.cpp | |
parent | eb411d298aff4a062ed9d429a013e4687b6dc541 (diff) | |
download | scummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.tar.gz scummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.tar.bz2 scummvm-rg350-e5929da662dd328ea6ff46194d4cfae8eedec5a7.zip |
Coding conventions once again.
svn-id: r31850
Diffstat (limited to 'graphics/VectorRenderer.cpp')
-rw-r--r-- | graphics/VectorRenderer.cpp | 16 |
1 files changed, 8 insertions, 8 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; |