|  | @@ -45,8 +45,8 @@ SDL_Color toSDL(const ColorRGBA & color);
 | 
	
		
			
				|  |  |  void setColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors);
 | 
	
		
			
				|  |  |  void setAlpha(SDL_Surface * bg, int value);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -typedef void (*TColorPutter)(uint8_t *&ptr, const uint8_t & R, const uint8_t & G, const uint8_t & B);
 | 
	
		
			
				|  |  | -typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_t & G, const uint8_t & B, const uint8_t & A);
 | 
	
		
			
				|  |  | +using TColorPutter = void (*)(uint8_t *&, const uint8_t &, const uint8_t &, const uint8_t &);
 | 
	
		
			
				|  |  | +using TColorPutterAlpha = void (*)(uint8_t *&, const uint8_t &, const uint8_t &, const uint8_t &, const uint8_t &);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	void blitAt(SDL_Surface * src, int x, int y, SDL_Surface * dst);
 | 
	
		
			
				|  |  |  	void blitAt(SDL_Surface * src, const Rect & pos, SDL_Surface * dst);
 | 
	
	
		
			
				|  | @@ -57,23 +57,23 @@ typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_
 | 
	
		
			
				|  |  |  	void blitSurface(SDL_Surface * src, const Rect & srcRect, SDL_Surface * dst, const Point & dest);
 | 
	
		
			
				|  |  |  	void blitSurface(SDL_Surface * src, SDL_Surface * dst, const Point & dest);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	void fillSurface(SDL_Surface *dst, const SDL_Color & color);
 | 
	
		
			
				|  |  | -	void fillRect(SDL_Surface *dst, const Rect & dstrect, const SDL_Color & color);
 | 
	
		
			
				|  |  | +	void fillSurface(SDL_Surface * dst, const SDL_Color & color);
 | 
	
		
			
				|  |  | +	void fillRect(SDL_Surface * dst, const Rect & dstrect, const SDL_Color & color);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	void updateRect(SDL_Surface *surface, const Rect & rect);
 | 
	
		
			
				|  |  | +	void updateRect(SDL_Surface * surface, const Rect & rect);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	void putPixelWithoutRefresh(SDL_Surface *ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
 | 
	
		
			
				|  |  | +	void putPixelWithoutRefresh(SDL_Surface * ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
 | 
	
		
			
				|  |  |  	void putPixelWithoutRefreshIfInSurf(SDL_Surface *ekran, const int & x, const int & y, const uint8_t & R, const uint8_t & G, const uint8_t & B, uint8_t A = 255);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	SDL_Surface * verticalFlip(SDL_Surface * toRot); //vertical flip
 | 
	
		
			
				|  |  |  	SDL_Surface * horizontalFlip(SDL_Surface * toRot); //horizontal flip
 | 
	
		
			
				|  |  | -	uint32_t getPixel(SDL_Surface *surface, const int & x, const int & y, bool colorByte = false);
 | 
	
		
			
				|  |  | +	uint32_t getPixel(SDL_Surface * surface, const int & x, const int & y, bool colorByte = false);
 | 
	
		
			
				|  |  |  	bool isTransparent(SDL_Surface * srf, int x, int y); //checks if surface is transparent at given position
 | 
	
		
			
				|  |  | -	bool isTransparent(SDL_Surface * srf, const Point &  position); //checks if surface is transparent at given position
 | 
	
		
			
				|  |  | +	bool isTransparent(SDL_Surface * srf, const Point & position); //checks if surface is transparent at given position
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	uint8_t *getPxPtr(const SDL_Surface * const &srf, const int x, const int y);
 | 
	
		
			
				|  |  | -	TColorPutter getPutterFor(SDL_Surface  * const &dest, int incrementing); //incrementing: -1, 0, 1
 | 
	
		
			
				|  |  | -	TColorPutterAlpha getPutterAlphaFor(SDL_Surface  * const &dest, int incrementing); //incrementing: -1, 0, 1
 | 
	
		
			
				|  |  | +	uint8_t * getPxPtr(const SDL_Surface * const & srf, const int x, const int y);
 | 
	
		
			
				|  |  | +	TColorPutter getPutterFor(SDL_Surface * const & dest, int incrementing); //incrementing: -1, 0, 1
 | 
	
		
			
				|  |  | +	TColorPutterAlpha getPutterAlphaFor(SDL_Surface * const & dest, int incrementing); //incrementing: -1, 0, 1
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	template<int bpp>
 | 
	
		
			
				|  |  |  	int blit8bppAlphaTo24bppT(const SDL_Surface * src, const Rect & srcRect, SDL_Surface * dst, const Point & dstPoint); //blits 8 bpp surface with alpha channel to 24 bpp surface
 | 
	
	
		
			
				|  | @@ -84,8 +84,8 @@ typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_
 | 
	
		
			
				|  |  |  	void drawLine(SDL_Surface * sur, const Point & from, const Point & dest, const SDL_Color & color1, const SDL_Color & color2);
 | 
	
		
			
				|  |  |  	void drawLineDashed(SDL_Surface * sur, const Point & from, const Point & dest, const SDL_Color & color);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	void drawBorder(SDL_Surface * sur, int x, int y, int w, int h, const SDL_Color &color, int depth = 1);
 | 
	
		
			
				|  |  | -	void drawBorder(SDL_Surface * sur, const Rect &r, const SDL_Color &color, int depth = 1);
 | 
	
		
			
				|  |  | +	void drawBorder(SDL_Surface * sur, int x, int y, int w, int h, const SDL_Color & color, int depth = 1);
 | 
	
		
			
				|  |  | +	void drawBorder(SDL_Surface * sur, const Rect & r, const SDL_Color & color, int depth = 1);
 | 
	
		
			
				|  |  |  	void setPlayerColor(SDL_Surface * sur, PlayerColor player); //sets correct color of flags; -1 for neutral
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	SDL_Surface * newSurface(int w, int h, SDL_Surface * mod); //creates new surface, with flags/format same as in surface given
 | 
	
	
		
			
				|  | @@ -97,18 +97,18 @@ typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	//scale surface to required size.
 | 
	
		
			
				|  |  |  	//nearest neighbour algorithm
 | 
	
		
			
				|  |  | -	SDL_Surface * scaleSurfaceFast(SDL_Surface *surf, int width, int height);
 | 
	
		
			
				|  |  | +	SDL_Surface * scaleSurfaceFast(SDL_Surface * surf, int width, int height);
 | 
	
		
			
				|  |  |  	// bilinear filtering. Uses fallback to scaleSurfaceFast in case of indexed surfaces
 | 
	
		
			
				|  |  | -	SDL_Surface * scaleSurface(SDL_Surface *surf, int width, int height);
 | 
	
		
			
				|  |  | +	SDL_Surface * scaleSurface(SDL_Surface * surf, int width, int height);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	template<int bpp>
 | 
	
		
			
				|  |  | -	void convertToGrayscaleBpp( SDL_Surface * surf, const Rect & rect );
 | 
	
		
			
				|  |  | +	void convertToGrayscaleBpp(SDL_Surface * surf, const Rect & rect);
 | 
	
		
			
				|  |  |  	void convertToGrayscale(SDL_Surface * surf, const Rect & rect);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	bool isResolutionSupported(const std::vector<Point> & resolutions, const Point toTest );
 | 
	
		
			
				|  |  | +	bool isResolutionSupported(const std::vector<Point> & resolutions, const Point toTest);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	std::vector<Point> getSupportedResolutions();
 | 
	
		
			
				|  |  | -	std::vector<Point> getSupportedResolutions( int displayIndex);
 | 
	
		
			
				|  |  | +	std::vector<Point> getSupportedResolutions(int displayIndex);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	void setColorKey(SDL_Surface * surface, SDL_Color color);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -118,13 +118,13 @@ typedef void (*TColorPutterAlpha)(uint8_t *&ptr, const uint8_t & R, const uint8_
 | 
	
		
			
				|  |  |  	void setDefaultColorKeyPresize(SDL_Surface * surface);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	/// helper that will safely set and un-set ClipRect for SDL_Surface
 | 
	
		
			
				|  |  | -	class CClipRectGuard : boost::noncopyable
 | 
	
		
			
				|  |  | +	class CClipRectGuard: boost::noncopyable
 | 
	
		
			
				|  |  |  	{
 | 
	
		
			
				|  |  |  		SDL_Surface * surf;
 | 
	
		
			
				|  |  |  		Rect oldRect;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	public:
 | 
	
		
			
				|  |  | -		CClipRectGuard(SDL_Surface * surface, const Rect & rect):
 | 
	
		
			
				|  |  | -			surf(surface)
 | 
	
		
			
				|  |  | +		CClipRectGuard(SDL_Surface * surface, const Rect & rect): surf(surface)
 | 
	
		
			
				|  |  |  		{
 | 
	
		
			
				|  |  |  			CSDL_Ext::getClipRect(surf, oldRect);
 | 
	
		
			
				|  |  |  			CSDL_Ext::setClipRect(surf, rect);
 |