summaryrefslogtreecommitdiff
path: root/src/resources/imagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/resources/imagehelper.cpp
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadmanaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
manaplus-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/resources/imagehelper.cpp')
-rw-r--r--src/resources/imagehelper.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/resources/imagehelper.cpp b/src/resources/imagehelper.cpp
index a70889acd..4762d42e0 100644
--- a/src/resources/imagehelper.cpp
+++ b/src/resources/imagehelper.cpp
@@ -105,10 +105,13 @@ void ImageHelper::dumpSurfaceFormat(SDL_Surface *image)
const SDL_PixelFormat * const format = image->format;
logger->log("Bytes per pixel: %d", format->BytesPerPixel);
logger->log("Alpha: %d", format->alpha);
- logger->log("Loss: %02x, %02x, %02x, %02x", (int)format->Rloss,
- (int)format->Gloss, (int)format->Bloss, (int)format->Aloss);
- logger->log("Shift: %02x, %02x, %02x, %02x", (int)format->Rshift,
- (int)format->Gshift, (int)format->Bshift, (int)format->Ashift);
+ logger->log("Loss: %02x, %02x, %02x, %02x",
+ static_cast<int>(format->Rloss), static_cast<int>(format->Gloss),
+ static_cast<int>(format->Bloss), static_cast<int>(format->Aloss));
+ logger->log("Shift: %02x, %02x, %02x, %02x",
+ static_cast<int>(format->Rshift), static_cast<int>(format->Gshift),
+ static_cast<int>(format->Bshift),
+ static_cast<int>(format->Ashift));
logger->log("Mask: %08x, %08x, %08x, %08x", format->Rmask,
format->Gmask, format->Bmask, format->Amask);
}