Patched to compile again on x86 systems that use the assembly blitters.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 Apr 2005 05:57:39 +0000
changeset 1053f596fa4f17a6
parent 1052 68f607298ca9
child 1054 e89d7f826b4a
Patched to compile again on x86 systems that use the assembly blitters.
src/video/SDL_blit_N.c
     1.1 --- a/src/video/SDL_blit_N.c	Sun Apr 17 10:40:41 2005 +0000
     1.2 +++ b/src/video/SDL_blit_N.c	Wed Apr 20 05:57:39 2005 +0000
     1.3 @@ -685,6 +685,15 @@
     1.4  #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
     1.5  #endif
     1.6  
     1.7 +/* This is now endian dependent */
     1.8 +#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
     1.9 +#define HI	1
    1.10 +#define LO	0
    1.11 +#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
    1.12 +#define HI	0
    1.13 +#define LO	1
    1.14 +#endif
    1.15 +
    1.16  #ifdef USE_ASMBLIT
    1.17  
    1.18  /* Heheheh, we coerce Hermes into using SDL blit information */
    1.19 @@ -698,15 +707,6 @@
    1.20  
    1.21  #else
    1.22  
    1.23 -/* This is now endian dependent */
    1.24 -#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
    1.25 -#define HI	1
    1.26 -#define LO	0
    1.27 -#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
    1.28 -#define HI	0
    1.29 -#define LO	1
    1.30 -#endif
    1.31 -
    1.32  /* Special optimized blit for RGB 8-8-8 --> RGB 3-3-2 */
    1.33  #define RGB888_RGB332(dst, src) { \
    1.34  	dst = (((src)&0x00E00000)>>16)| \