Commit e32b25be authored by Sam Lantinga's avatar Sam Lantinga

Fixed compiling AltiVec blitters

parent cde0d1bc
......@@ -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__
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment