diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-18 00:42:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-18 00:42:57 +0300 |
commit | 591869ee212806e271b1c924ece1f7d44daf2a06 (patch) | |
tree | 7af3e1ffa3bfb4a60aa859a21116d4eea70bcd4a /src/resources | |
parent | a0d68ca09401811ac7764b975abca44ba8045cc9 (diff) | |
download | manaverse-591869ee212806e271b1c924ece1f7d44daf2a06.tar.gz manaverse-591869ee212806e271b1c924ece1f7d44daf2a06.tar.bz2 manaverse-591869ee212806e271b1c924ece1f7d44daf2a06.tar.xz manaverse-591869ee212806e271b1c924ece1f7d44daf2a06.zip |
Fix code style.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/image.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/image.cpp b/src/resources/image.cpp index a4be43e4e..c642980af 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -271,7 +271,8 @@ void Image::setAlpha(float alpha) uint8_t a = static_cast<uint8_t>( static_cast<float>(sourceAlpha) * mAlpha); - uint32_t c = (static_cast<uint32_t*>(mSDLSurface->pixels))[i]; + uint32_t c = (static_cast<uint32_t*>( + mSDLSurface->pixels))[i]; c &= ~fmt->Amask; c |= ((a >> fmt->Aloss) << fmt->Ashift & fmt->Amask); (static_cast<uint32_t*>(mSDLSurface->pixels))[i] = c; |