Mercurial > sdl-ios-xcode
comparison src/video/SDL_RLEaccel.c @ 1155:91569ec25acd
Fixed some compiler warnings about "unreachable code" on Watcom C.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 03 Oct 2005 08:38:28 +0000 |
parents | cdea7cbc3e23 |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1154:d93862a3d821 | 1155:91569ec25acd |
---|---|
1630 return *(Uint16 *)srcbuf; | 1630 return *(Uint16 *)srcbuf; |
1631 } | 1631 } |
1632 | 1632 |
1633 static Uint32 getpix_24(Uint8 *srcbuf) | 1633 static Uint32 getpix_24(Uint8 *srcbuf) |
1634 { | 1634 { |
1635 if(SDL_BYTEORDER == SDL_LIL_ENDIAN) | 1635 #if SDL_BYTEORDER == SDL_LIL_ENDIAN |
1636 return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16); | 1636 return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16); |
1637 else | 1637 #else |
1638 return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2]; | 1638 return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2]; |
1639 #endif | |
1639 } | 1640 } |
1640 | 1641 |
1641 static Uint32 getpix_32(Uint8 *srcbuf) | 1642 static Uint32 getpix_32(Uint8 *srcbuf) |
1642 { | 1643 { |
1643 return *(Uint32 *)srcbuf; | 1644 return *(Uint32 *)srcbuf; |