summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-05 13:48:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-05 13:48:19 +0300
commit0ca79840f3497375591a43b38d520ada03dfb2dd (patch)
tree011c02abc751d78c74c06e8cf50a2251712156be /src/resources/image.cpp
parent9f7b1073ad4e1cc8f17e83fb13b85e4a20d5320e (diff)
downloadmv-0ca79840f3497375591a43b38d520ada03dfb2dd.tar.gz
mv-0ca79840f3497375591a43b38d520ada03dfb2dd.tar.bz2
mv-0ca79840f3497375591a43b38d520ada03dfb2dd.tar.xz
mv-0ca79840f3497375591a43b38d520ada03dfb2dd.zip
fix compilation warnings.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp6
1 files changed, 3 insertions, 3 deletions
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];