aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-03 23:10:43 +0000
committerJohannes Schickel2008-05-03 23:10:43 +0000
commit2c71344685670bc37535a46433739a0998b97c3e (patch)
tree6e0c088dbcab3b8726c6d8ab2a0e8f4cdf245359
parent3e8e978c4e05645660251d1b8d5e0db0eb756a57 (diff)
downloadscummvm-rg350-2c71344685670bc37535a46433739a0998b97c3e.tar.gz
scummvm-rg350-2c71344685670bc37535a46433739a0998b97c3e.tar.bz2
scummvm-rg350-2c71344685670bc37535a46433739a0998b97c3e.zip
- fixed invalid C++
- some minor formatting tweaks svn-id: r31853
-rw-r--r--graphics/VectorRenderer.cpp14
1 files 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<uint16,ColorMasks<565>>;
+ return new VectorRendererSpec<uint16, ColorMasks<565> >;
}
@@ -74,7 +74,7 @@ void vector_renderer_test(OSystem *_system) {
}
template<typename PixelType, typename PixelFormat>
-void VectorRendererSpec<PixelType,PixelFormat>::
+void VectorRendererSpec<PixelType, PixelFormat>::
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<typename PixelType, typename PixelFormat>
-void VectorRendererAA<PixelType,PixelFormat>::
+void VectorRendererAA<PixelType, PixelFormat>::
blendPixelPtr(PixelType *ptr, uint8 alpha) {
register int idst = *ptr;
register int isrc = Base::_color;
@@ -141,7 +141,7 @@ blendPixelPtr(PixelType *ptr, uint8 alpha) {
template<typename PixelType, typename PixelFormat>
-void VectorRendererAA<PixelType,PixelFormat>::
+void VectorRendererAA<PixelType, PixelFormat>::
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<typename PixelType, typename PixelFormat>
-void VectorRendererSpec<PixelType,PixelFormat>::
+void VectorRendererSpec<PixelType, PixelFormat>::
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<typename PixelType, typename PixelFormat>
-void VectorRendererSpec<PixelType,PixelFormat>::
+void VectorRendererSpec<PixelType, PixelFormat>::
drawCircleAlg(int x1, int y1, int r) {
#define __CIRCLE_SIM(x,y) { \
@@ -294,7 +294,7 @@ drawCircleAlg(int x1, int y1, int r) {
}
template<typename PixelType, typename PixelFormat>
-void VectorRendererAA<PixelType,PixelFormat>::
+void VectorRendererAA<PixelType, PixelFormat>::
drawCircleAlg(int x1, int y1, int r) {
#define __WU_CIRCLE_SIM(x,y,a) { \