summaryrefslogtreecommitdiff
path: root/src/resources/image.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-05 00:35:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-05 00:35:30 +0300
commitc3afff20d4989ab2835545715bbe67e5b5d9b353 (patch)
tree21d4d8c51ff0afa1c4b87fd83af1f6a6c4d64ce4 /src/resources/image.cpp
parentc0826c48402594d86f8f75db96b54c58ce00968d (diff)
downloadmanaverse-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.gz
manaverse-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.bz2
manaverse-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.xz
manaverse-c3afff20d4989ab2835545715bbe67e5b5d9b353.zip
Fix code style.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r--src/resources/image.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp
index 0c4735043..4e7a9ceef 100644
--- a/src/resources/image.cpp
+++ b/src/resources/image.cpp
@@ -168,7 +168,8 @@ Resource *Image::load(SDL_RWops *rw, Dye const &dye)
if (pal)
{
- for (Uint32 *p_end = pixels + surf->w * surf->h; pixels != p_end; ++pixels)
+ for (Uint32 *p_end = pixels + surf->w * surf->h;
+ pixels != p_end; ++pixels)
{
Uint8 *p = (Uint8 *)pixels;
const int alpha = *p & 255;
@@ -179,7 +180,8 @@ Resource *Image::load(SDL_RWops *rw, Dye const &dye)
}
else
{
- for (Uint32 *p_end = pixels + surf->w * surf->h; pixels != p_end; ++pixels)
+ for (Uint32 *p_end = pixels + surf->w * surf->h;
+ pixels != p_end; ++pixels)
{
const Uint32 p = *pixels;
const int alpha = p & 255;