summaryrefslogtreecommitdiff
path: root/src/resources/sdlimagehelper.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/sdlimagehelper.cpp
parent48ea9be889ecc77ae0ee7e952f1970771a92e5c9 (diff)
downloadmv-514878dd29b52fcbdc3ec63833d528070d502880.tar.gz
mv-514878dd29b52fcbdc3ec63833d528070d502880.tar.bz2
mv-514878dd29b52fcbdc3ec63833d528070d502880.tar.xz
mv-514878dd29b52fcbdc3ec63833d528070d502880.zip
Fix code style.
Diffstat (limited to 'src/resources/sdlimagehelper.cpp')
-rw-r--r--src/resources/sdlimagehelper.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp
index 0ed5c9f52..e9db78e9e 100644
--- a/src/resources/sdlimagehelper.cpp
+++ b/src/resources/sdlimagehelper.cpp
@@ -73,23 +73,23 @@ Image *SDLImageHelper::load(SDL_RWops *const rw, Dye const &dye)
rgba.Aloss = 0;
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- rgba.Rmask = 0x000000FF;
+ rgba.Rmask = 0x000000FFU;
rgba.Rshift = 24;
- rgba.Gmask = 0x0000FF00;
+ rgba.Gmask = 0x0000FF00U;
rgba.Gshift = 16;
- rgba.Bmask = 0x00FF0000;
+ rgba.Bmask = 0x00FF0000U;
rgba.Bshift = 8;
- rgba.Amask = 0xFF000000;
+ rgba.Amask = 0xFF000000U;
rgba.Ashift = 0;
#else // SDL_BYTEORDER == SDL_BIG_ENDIAN
- rgba.Rmask = 0xFF000000;
+ rgba.Rmask = 0xFF000000U;
rgba.Rshift = 0;
- rgba.Gmask = 0x00FF0000;
+ rgba.Gmask = 0x00FF0000U;
rgba.Gshift = 8;
- rgba.Bmask = 0x0000FF00;
+ rgba.Bmask = 0x0000FF00U;
rgba.Bshift = 16;
- rgba.Amask = 0x000000FF;
+ rgba.Amask = 0x000000FFU;
rgba.Ashift = 24;
#endif // SDL_BYTEORDER == SDL_BIG_ENDIAN