diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-23 04:04:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-23 04:04:00 +0300 |
commit | 45a17142524b79254b0b87a8385ee36cbfac79ce (patch) | |
tree | 04865c94ae41a9740dc4a52f693cbd830f4c125d /src/resources/memorymanager.cpp | |
parent | 7e8f6e26d5e2d1c560092cf72bc4f7f98f7fba07 (diff) | |
download | plus-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.gz plus-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.bz2 plus-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.xz plus-45a17142524b79254b0b87a8385ee36cbfac79ce.zip |
Fix code style.
Diffstat (limited to 'src/resources/memorymanager.cpp')
-rw-r--r-- | src/resources/memorymanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/memorymanager.cpp b/src/resources/memorymanager.cpp index 546c19c45..758504326 100644 --- a/src/resources/memorymanager.cpp +++ b/src/resources/memorymanager.cpp @@ -31,12 +31,12 @@ MemoryManager::MemoryManager() } -int MemoryManager::getSurfaceSize(SDL_Surface *const surface) +int MemoryManager::getSurfaceSize(const SDL_Surface *const surface) { if (!surface) return 0; - return sizeof(SDL_Surface) + - sizeof(SDL_PixelFormat) + + return CAST_S32(sizeof(SDL_Surface)) + + CAST_S32(sizeof(SDL_PixelFormat)) + // aproximation for sizeof(SDL_BlitMap) 28 + // pixels |