Commit 7ad062e1 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed some compiler warnings about "unreachable code" on Watcom C.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401158
parent 19739655
...@@ -1632,10 +1632,11 @@ static Uint32 getpix_16(Uint8 *srcbuf) ...@@ -1632,10 +1632,11 @@ static Uint32 getpix_16(Uint8 *srcbuf)
static Uint32 getpix_24(Uint8 *srcbuf) static Uint32 getpix_24(Uint8 *srcbuf)
{ {
if(SDL_BYTEORDER == SDL_LIL_ENDIAN) #if SDL_BYTEORDER == SDL_LIL_ENDIAN
return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16); return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
else #else
return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2]; return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
#endif
} }
static Uint32 getpix_32(Uint8 *srcbuf) static Uint32 getpix_32(Uint8 *srcbuf)
......
...@@ -712,8 +712,9 @@ int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color) ...@@ -712,8 +712,9 @@ int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color)
break; break;
case 3: case 3:
if(SDL_BYTEORDER == SDL_BIG_ENDIAN) #if SDL_BYTEORDER == SDL_BIG_ENDIAN
color <<= 8; color <<= 8;
#endif
for ( y=dstrect->h; y; --y ) { for ( y=dstrect->h; y; --y ) {
Uint8 *pixels = row; Uint8 *pixels = row;
for ( x=dstrect->w; x; --x ) { for ( x=dstrect->w; x; --x ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment