Mercurial > sdl-ios-xcode
comparison src/video/SDL_surface.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 | 68f607298ca9 |
children | 86d0d01290ea |
comparison
equal
deleted
inserted
replaced
1154:d93862a3d821 | 1155:91569ec25acd |
---|---|
710 row += dst->pitch; | 710 row += dst->pitch; |
711 } | 711 } |
712 break; | 712 break; |
713 | 713 |
714 case 3: | 714 case 3: |
715 if(SDL_BYTEORDER == SDL_BIG_ENDIAN) | 715 #if SDL_BYTEORDER == SDL_BIG_ENDIAN |
716 color <<= 8; | 716 color <<= 8; |
717 #endif | |
717 for ( y=dstrect->h; y; --y ) { | 718 for ( y=dstrect->h; y; --y ) { |
718 Uint8 *pixels = row; | 719 Uint8 *pixels = row; |
719 for ( x=dstrect->w; x; --x ) { | 720 for ( x=dstrect->w; x; --x ) { |
720 memcpy(pixels, &color, 3); | 721 memcpy(pixels, &color, 3); |
721 pixels += 3; | 722 pixels += 3; |