From 2c71344685670bc37535a46433739a0998b97c3e Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 May 2008 23:10:43 +0000 Subject: - fixed invalid C++ - some minor formatting tweaks svn-id: r31853 --- graphics/VectorRenderer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp index f231531a16..256739c614 100644 --- a/graphics/VectorRenderer.cpp +++ b/graphics/VectorRenderer.cpp @@ -34,7 +34,7 @@ namespace Graphics { inline uint32 fp_sqroot(uint32 x); VectorRenderer *createRenderer() { - return new VectorRendererSpec>; + return new VectorRendererSpec >; } @@ -74,7 +74,7 @@ void vector_renderer_test(OSystem *_system) { } template -void VectorRendererSpec:: +void VectorRendererSpec:: drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) { PixelType *ptr = (PixelType *)_activeSurface->getBasePtr(x1, y1); int pitch = surfacePitch(); @@ -122,7 +122,7 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) { template -void VectorRendererAA:: +void VectorRendererAA:: blendPixelPtr(PixelType *ptr, uint8 alpha) { register int idst = *ptr; register int isrc = Base::_color; @@ -141,7 +141,7 @@ blendPixelPtr(PixelType *ptr, uint8 alpha) { template -void VectorRendererAA:: +void VectorRendererAA:: drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) { PixelType *ptr = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1); @@ -189,7 +189,7 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy) { } template -void VectorRendererSpec:: +void VectorRendererSpec:: drawLine(int x1, int y1, int x2, int y2) { // we draw from top to bottom if (y2 < y1) { @@ -257,7 +257,7 @@ inline uint32 fp_sqroot(uint32 x) { } template -void VectorRendererSpec:: +void VectorRendererSpec:: drawCircleAlg(int x1, int y1, int r) { #define __CIRCLE_SIM(x,y) { \ @@ -294,7 +294,7 @@ drawCircleAlg(int x1, int y1, int r) { } template -void VectorRendererAA:: +void VectorRendererAA:: drawCircleAlg(int x1, int y1, int r) { #define __WU_CIRCLE_SIM(x,y,a) { \ -- cgit v1.2.3