diff options
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; |