diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
commit | ff516e9f60e9554e8938d04192a8e5ec9efb5647 (patch) | |
tree | b134dd0202377c5b182f62870b983fe078700e28 /src/resources/imagehelper.cpp | |
parent | 269f642099ec8e4c6bcf735496c32ee8019aaf1b (diff) | |
download | manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.gz manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.bz2 manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.xz manaplus-ff516e9f60e9554e8938d04192a8e5ec9efb5647.zip |
fix code style.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r-- | src/resources/imagehelper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp index 0fbc04776..d72550767 100644 --- a/src/resources/imagehelper.cpp +++ b/src/resources/imagehelper.cpp @@ -84,7 +84,7 @@ Image *ImageHelper::load(SDL_RWops *const rw, Dye const &dye) const tmpImage, &rgba, SDL_SWSURFACE); MSDL_FreeSurface(tmpImage); - uint32_t *pixels = static_cast<uint32_t *>(surf->pixels); + uint32_t *const pixels = static_cast<uint32_t *const>(surf->pixels); const int type = dye.getType(); switch (type) @@ -203,7 +203,8 @@ SDL_Surface *ImageHelper::loadPng(SDL_RWops *const rw) return nullptr; } -SDL_Surface *ImageHelper::create32BitSurface(int width, int height) const +SDL_Surface *ImageHelper::create32BitSurface(int width, + int height) const { #if SDL_BYTEORDER == SDL_BIG_ENDIAN const int rmask = 0xff000000; |