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 1053 f596fa4f17a6
parent 1052 68f607298ca9
child 1054 e89d7f826b4a
Patched to compile again on x86 systems that use the assembly blitters.
src/video/SDL_blit_N.c
--- a/src/video/SDL_blit_N.c	Sun Apr 17 10:40:41 2005 +0000
+++ b/src/video/SDL_blit_N.c	Wed Apr 20 05:57:39 2005 +0000
@@ -685,6 +685,15 @@
 #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
 #endif
 
+/* This is now endian dependent */
+#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
+#define HI	1
+#define LO	0
+#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
+#define HI	0
+#define LO	1
+#endif
+
 #ifdef USE_ASMBLIT
 
 /* Heheheh, we coerce Hermes into using SDL blit information */
@@ -698,15 +707,6 @@
 
 #else
 
-/* This is now endian dependent */
-#if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
-#define HI	1
-#define LO	0
-#else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
-#define HI	0
-#define LO	1
-#endif
-
 /* Special optimized blit for RGB 8-8-8 --> RGB 3-3-2 */
 #define RGB888_RGB332(dst, src) { \
 	dst = (((src)&0x00E00000)>>16)| \