Fixed compiling AltiVec blitters

This commit is contained in:
Sam Lantinga 2011-02-27 22:22:58 -08:00
parent cde0d1bc03
commit e32b25be9e
3 changed files with 6 additions and 6 deletions

View file

@ -45,9 +45,7 @@
#ifdef __ALTIVEC__
#if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
#include <altivec.h>
#undef vector
#undef pixel
#undef bool
#endif
#endif
#ifdef __MMX__

View file

@ -499,10 +499,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
*/
/* ARGB */
const static struct SDL_PixelFormat default_pixel_format = {
NULL, 0, 0,
0, NULL, 0, 0,
0, 0, 0, 0,
16, 8, 0, 24,
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
0, NULL
};
if (!srcfmt) {
srcfmt = &default_pixel_format;

View file

@ -108,10 +108,11 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
*/
/* ARGB */
const static const struct SDL_PixelFormat default_pixel_format = {
NULL, 32, 4,
0, NULL, 0, 0,
0, 0, 0, 0,
16, 8, 0, 24,
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
0, NULL
};
if (!srcfmt) {
srcfmt = &default_pixel_format;