summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-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;