From c1c6cb457479e17d07bc6d9baa618ef85d60f2bc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Jul 2013 13:14:39 +0300 Subject: Improve a bit dye code formatting. --- src/resources/openglimagehelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/openglimagehelper.cpp') diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index a107b0099..79cd12512 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -75,7 +75,7 @@ Image *OpenGLImageHelper::load(SDL_RWops *const rw, Dye const &dye) const if (pal) { for (uint32_t *p_end = pixels + surf->w * surf->h; - pixels != p_end; ++pixels) + pixels != p_end; ++pixels) { uint8_t *p = reinterpret_cast(pixels); const int alpha = *p & 255; @@ -92,7 +92,7 @@ Image *OpenGLImageHelper::load(SDL_RWops *const rw, Dye const &dye) const if (pal) { for (uint32_t *p_end = pixels + surf->w * surf->h; - pixels != p_end; ++pixels) + pixels != p_end; ++pixels) { pal->replaceAOGLColor(reinterpret_cast(pixels)); } -- cgit v1.2.3-60-g2f50