Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiling AltiVec blitters
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 28, 2011
1 parent 6c64eaf commit cf9b841
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions include/SDL_cpuinfo.h
Expand Up @@ -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__
Expand Down
5 changes: 3 additions & 2 deletions src/video/SDL_blit_A.c
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/video/SDL_blit_N.c
Expand Up @@ -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;
Expand Down

0 comments on commit cf9b841

Please sign in to comment.