diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-05 00:35:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-05 00:35:30 +0300 |
commit | c3afff20d4989ab2835545715bbe67e5b5d9b353 (patch) | |
tree | 21d4d8c51ff0afa1c4b87fd83af1f6a6c4d64ce4 /src/resources/image.cpp | |
parent | c0826c48402594d86f8f75db96b54c58ce00968d (diff) | |
download | mv-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.gz mv-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.bz2 mv-c3afff20d4989ab2835545715bbe67e5b5d9b353.tar.xz mv-c3afff20d4989ab2835545715bbe67e5b5d9b353.zip |
Fix code style.
Diffstat (limited to 'src/resources/image.cpp')
-rw-r--r-- | src/resources/image.cpp | 6 |
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; |