1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Cosmetics

This commit is contained in:
Mathieu Schroeter 2018-06-26 19:14:55 +02:00 committed by Mathieu Schroeter
parent 315b18e8eb
commit 0815415658

View File

@ -774,19 +774,20 @@ CPixmap::LoadCursors (Uint8 scale)
{
Uint32 rmask, gmask, bmask, amask;
/* SDL interprets each pixel as a 32-bit number, so our masks must depend
on the endianness (byte order) of the machine */
/* SDL interprets each pixel as a 32-bit number, so our masks must depend
* on the endianness (byte order) of the machine
*/
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
rmask = 0xff000000;
gmask = 0x00ff0000;
bmask = 0x0000ff00;
amask = 0x000000ff;
#else
#else /* SDL_BYTEORDER == SDL_BIG_ENDIAN */
rmask = 0x000000ff;
gmask = 0x0000ff00;
bmask = 0x00ff0000;
amask = 0xff000000;
#endif
#endif /* SDL_BYTEORDER != SDL_BIG_ENDIAN */
for (int i = SPRITE_BEGIN; i <= SPRITE_END; ++i)
{