From 0ca79840f3497375591a43b38d520ada03dfb2dd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 Nov 2013 13:48:19 +0300 Subject: fix compilation warnings. --- src/resources/image.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources') diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 4229cb8af..f185d103e 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -358,9 +358,9 @@ void Image::setAlpha(const float alpha) { for (int y = by; y < maxHeight; y ++) { - const int i1 = y * sw; - const int x1 = i1 + bx; - const int x2 = i1 + maxWidth; + const int idx = y * sw; + const int x1 = idx + bx; + const int x2 = idx + maxWidth; for (int i = x1; i < x2; i ++) { const uint8_t sourceAlpha = mAlphaChannel[i]; -- cgit v1.2.3-70-g09d2