summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 16:18:13 +0300
commit9fe21fcd8883b37bdc30224822e6e42afb35b8f0 (patch)
tree798117abd4dc7e610997d59d530a96ddc1509f53 /src/resources/imagehelper.cpp
parent4429cb14e9e187edef27aba692a4266733f79c17 (diff)
downloadmv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.gz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.bz2
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.tar.xz
mv-9fe21fcd8883b37bdc30224822e6e42afb35b8f0.zip
Replace most static_cast<Type> to shorter versions from defines.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index f4e09b834..af573709b 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -176,15 +176,15 @@ void ImageHelper::dumpSurfaceFormat(const SDL_Surface *const image)
logger->log("Alpha: %d", format->alpha);
#endif
logger->log("Loss: %02x, %02x, %02x, %02x",
- static_cast<unsigned int>(format->Rloss),
- static_cast<unsigned int>(format->Gloss),
- static_cast<unsigned int>(format->Bloss),
- static_cast<unsigned int>(format->Aloss));
+ CAST_U32(format->Rloss),
+ CAST_U32(format->Gloss),
+ CAST_U32(format->Bloss),
+ CAST_U32(format->Aloss));
logger->log("Shift: %02x, %02x, %02x, %02x",
- static_cast<unsigned int>(format->Rshift),
- static_cast<unsigned int>(format->Gshift),
- static_cast<unsigned int>(format->Bshift),
- static_cast<unsigned int>(format->Ashift));
+ CAST_U32(format->Rshift),
+ CAST_U32(format->Gshift),
+ CAST_U32(format->Bshift),
+ CAST_U32(format->Ashift));
logger->log("Mask: %08x, %08x, %08x, %08x", format->Rmask,
format->Gmask, format->Bmask, format->Amask);
}