src/video/SDL_RLEaccel.c
changeset 1155 91569ec25acd
parent 944 cdea7cbc3e23
child 1312 c9b51268668f
     1.1 --- a/src/video/SDL_RLEaccel.c	Mon Oct 03 08:12:32 2005 +0000
     1.2 +++ b/src/video/SDL_RLEaccel.c	Mon Oct 03 08:38:28 2005 +0000
     1.3 @@ -1632,10 +1632,11 @@
     1.4  
     1.5  static Uint32 getpix_24(Uint8 *srcbuf)
     1.6  {
     1.7 -    if(SDL_BYTEORDER == SDL_LIL_ENDIAN)
     1.8 -	return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
     1.9 -    else
    1.10 -	return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
    1.11 +#if SDL_BYTEORDER == SDL_LIL_ENDIAN
    1.12 +    return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
    1.13 +#else
    1.14 +    return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
    1.15 +#endif
    1.16  }
    1.17  
    1.18  static Uint32 getpix_32(Uint8 *srcbuf)