diff options
author | Neil <devnull@localhost> | 2014-07-23 12:57:02 +1000 |
---|---|---|
committer | Neil <devnull@localhost> | 2014-07-23 12:57:02 +1000 |
commit | 3da0bc57839e659c5078f59a8c6a6562712d3cdb (patch) | |
tree | aaf741258da68a37e087c585a9bf515d965712d0 /win32/PlatWin.cxx | |
parent | bc2d85387b5c7a281d88b474e5f940be5ece7ff0 (diff) | |
download | scintilla-mirror-3da0bc57839e659c5078f59a8c6a6562712d3cdb.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; |