summaryrefslogtreecommitdiff
path: root/src/resources/sdlgfxblitfunc.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-07 04:35:19 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-07 18:50:36 +0300
commit514878dd29b52fcbdc3ec63833d528070d502880 (patch)
tree8d4abe6e8a5146630f9d66908f8ccdf860f1b8d2 /src/resources/sdlgfxblitfunc.cpp
parent48ea9be889ecc77ae0ee7e952f1970771a92e5c9 (diff)
downloadmanaplus-514878dd29b52fcbdc3ec63833d528070d502880.tar.gz
manaplus-514878dd29b52fcbdc3ec63833d528070d502880.tar.bz2
manaplus-514878dd29b52fcbdc3ec63833d528070d502880.tar.xz
manaplus-514878dd29b52fcbdc3ec63833d528070d502880.zip
Fix code style.
Diffstat (limited to 'src/resources/sdlgfxblitfunc.cpp')
-rw-r--r--src/resources/sdlgfxblitfunc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/sdlgfxblitfunc.cpp b/src/resources/sdlgfxblitfunc.cpp
index fa74c82c3..7151d21bf 100644
--- a/src/resources/sdlgfxblitfunc.cpp
+++ b/src/resources/sdlgfxblitfunc.cpp
@@ -365,10 +365,10 @@ static void _SDL_gfxBlitBlitterRGBA(const SDL_gfxBlitInfo *const info)
sA = ((pixel & srcfmt->Amask) >> srcfmt->Ashift);
pixel = *(reinterpret_cast<uint32_t *>(dst));
- dR = pixel & 0xff;
- dG = ((pixel & 0xff00) >> 8);
- dB = ((pixel & 0xff0000) >> 16);
- dA = ((pixel & 0xff000000) >> 24);
+ dR = pixel & 0xffU;
+ dG = ((pixel & 0xff00U) >> 8);
+ dB = ((pixel & 0xff0000U) >> 16);
+ dA = ((pixel & 0xff000000U) >> 24);
sAA = GFX_ALPHA_ADJUST_ARRAY[sA & 255];
dR = (((sR - dR) * (sAA)) / 255) + dR;