mirror of
https://github.com/yawut/SDL.git
synced 2026-06-12 11:42:00 -05:00
Patched to compile again on x86 systems that use the assembly blitters.
This commit is contained in:
parent
b03c155abb
commit
c2e4e74ef7
|
|
@ -685,6 +685,15 @@ static Uint32 GetBlitFeatures( void )
|
|||
#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 @@ static Uint32 GetBlitFeatures( void )
|
|||
|
||||
#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)| \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user