From fc854786ed73fe768d6a3ca22c02f7013560a930 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Aug 2012 21:35:49 +0300 Subject: Fix code style. --- src/resources/imagehelper.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/resources/imagehelper.cpp') 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(format->Rloss), static_cast(format->Gloss), + static_cast(format->Bloss), static_cast(format->Aloss)); + logger->log("Shift: %02x, %02x, %02x, %02x", + static_cast(format->Rshift), static_cast(format->Gshift), + static_cast(format->Bshift), + static_cast(format->Ashift)); logger->log("Mask: %08x, %08x, %08x, %08x", format->Rmask, format->Gmask, format->Bmask, format->Amask); } -- cgit v1.2.3-70-g09d2