diff options
| author | Johannes Schickel | 2010-03-18 21:45:27 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2010-03-18 21:45:27 +0000 | 
| commit | 3f2057226f438244b8b7b84bcb5fc41040bd9339 (patch) | |
| tree | f73405511ee358ea906f8463566bd7b37dde1235 | |
| parent | ad8584d25c26f9feac82031fb9db050a140c5869 (diff) | |
| download | scummvm-rg350-3f2057226f438244b8b7b84bcb5fc41040bd9339.tar.gz scummvm-rg350-3f2057226f438244b8b7b84bcb5fc41040bd9339.tar.bz2 scummvm-rg350-3f2057226f438244b8b7b84bcb5fc41040bd9339.zip  | |
Commit salty-horse's patch for VectorRendererSpec.cpp, which fixes the use of invalid C++.
svn-id: r48291
| -rw-r--r-- | graphics/VectorRendererSpec.cpp | 26 | 
1 files changed, 13 insertions, 13 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index bb52874230..666a59b888 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -145,14 +145,14 @@ inline frac_t fp_sqroot(uint32 x) {  /** HELPER MACROS for WU's circle drawing algorithm **/  #define __WU_DRAWCIRCLE(ptr1,ptr2,ptr3,ptr4,x,y,px,py,a) { \ -	blendPixelPtr(ptr1 + (y) - (px), color, a); \ -	blendPixelPtr(ptr1 + (x) - (py), color, a); \ -	blendPixelPtr(ptr2 - (x) - (py), color, a); \ -	blendPixelPtr(ptr2 - (y) - (px), color, a); \ -	blendPixelPtr(ptr3 - (y) + (px), color, a); \ -	blendPixelPtr(ptr3 - (x) + (py), color, a); \ -	blendPixelPtr(ptr4 + (x) + (py), color, a); \ -	blendPixelPtr(ptr4 + (y) + (px), color, a); \ +	this->blendPixelPtr(ptr1 + (y) - (px), color, a); \ +	this->blendPixelPtr(ptr1 + (x) - (py), color, a); \ +	this->blendPixelPtr(ptr2 - (x) - (py), color, a); \ +	this->blendPixelPtr(ptr2 - (y) - (px), color, a); \ +	this->blendPixelPtr(ptr3 - (y) + (px), color, a); \ +	this->blendPixelPtr(ptr3 - (x) + (py), color, a); \ +	this->blendPixelPtr(ptr4 + (x) + (py), color, a); \ +	this->blendPixelPtr(ptr4 + (y) + (px), color, a); \  }  // optimized Wu's algorithm @@ -398,7 +398,7 @@ applyScreenShading(GUI::ThemeEngine::ShadingStyle shadingStyle) {  template<typename PixelType>  inline void VectorRendererSpec<PixelType>:: -blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha)	{ +blendPixelPtr(PixelType *ptr, PixelType color, uint8 alpha) {  	register int idst = *ptr;  	register int isrc = color; @@ -1459,8 +1459,8 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy, PixelType color) {  			ptr += xdir;  			alpha = (error_acc >> 8); -			blendPixelPtr(ptr, color, ~alpha); -			blendPixelPtr(ptr + pitch, color, alpha); +			this->blendPixelPtr(ptr, color, ~alpha); +			this->blendPixelPtr(ptr + pitch, color, alpha);  		}  	} else {  		gradient = (uint32)(dx << 16) / (uint32)dy; @@ -1476,8 +1476,8 @@ drawLineAlg(int x1, int y1, int x2, int y2, int dx, int dy, PixelType color) {  			ptr += pitch;  			alpha = (error_acc >> 8); -			blendPixelPtr(ptr, color, ~alpha); -			blendPixelPtr(ptr + xdir, color, alpha); +			this->blendPixelPtr(ptr, color, ~alpha); +			this->blendPixelPtr(ptr + xdir, color, alpha);  		}  	}  | 
