diff options
| author | Neil <unknown> | 2014-07-23 12:57:02 +1000 | 
|---|---|---|
| committer | Neil <unknown> | 2014-07-23 12:57:02 +1000 | 
| commit | fcdd797b0edfda0e6bbc89f7848c32094efe6669 (patch) | |
| tree | ccfc7faecafdf9dc71e18e0cee67f3be36e43516 /win32/PlatWin.cxx | |
| parent | fcf7dc58d3dad7efabdcf503512b0729960d5d1a (diff) | |
| download | scintilla-mirror-fcdd797b0edfda0e6bbc89f7848c32094efe6669.tar.gz | |
Avoid shadowed names mostly in method prototypes. Turn off shadow
warnings for lexers since they may be maintained by others.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index fda07875a..0f0279bcb 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1547,9 +1547,9 @@ void SurfaceD2D::DrawRGBAImage(PRectangle rc, int width, int height, const unsig  		rc.bottom = rc.top + height;  		std::vector<unsigned char> image(height * width * 4); -		for (int y=0; y<height; y++) { -			for (int x=0; x<width; x++) { -				unsigned char *pixel = &image[0] + (y*width+x) * 4; +		for (int yPixel=0; yPixel<height; yPixel++) { +			for (int xPixel = 0; xPixel<width; xPixel++) { +				unsigned char *pixel = &image[0] + (yPixel*width + xPixel) * 4;  				unsigned char alpha = pixelsImage[3];  				// Input is RGBA, output is BGRA with premultiplied alpha  				pixel[2] = (*pixelsImage++) * alpha / 255; @@ -2180,7 +2180,7 @@ public:  		}  	}  	virtual void SetFont(Font &font); -	virtual void Create(Window &parent, int ctrlID, Point location_, int lineHeight_, bool unicodeMode_, int technology_); +	virtual void Create(Window &parent_, int ctrlID_, Point location_, int lineHeight_, bool unicodeMode_, int technology_);  	virtual void SetAverageCharWidth(int width);  	virtual void SetVisibleRows(int rows);  	virtual int GetVisibleRows() const; | 
