Fixed bug 1225 - Altivec blitters broken due to SDL_PixelFormat
bastien.bouclet@gmail.com 2011-06-13 05:50:58 PDT Static pixel format initialization has not been updated to reflect header changes in SDL_blit_N.c The attached patch fixes Altivec support for me. altivec.h is needed for some systems.
This commit is contained in:
parent
de93e295ce
commit
f6bf85902d
2 changed files with 7 additions and 2 deletions
|
@ -498,9 +498,10 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
|
||||||
/* ARGB */
|
/* ARGB */
|
||||||
const static struct SDL_PixelFormat default_pixel_format = {
|
const static struct SDL_PixelFormat default_pixel_format = {
|
||||||
0, NULL, 0, 0,
|
0, NULL, 0, 0,
|
||||||
|
{0, 0},
|
||||||
|
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
|
||||||
0, 0, 0, 0,
|
0, 0, 0, 0,
|
||||||
16, 8, 0, 24,
|
16, 8, 0, 24,
|
||||||
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
|
|
||||||
0, NULL
|
0, NULL
|
||||||
};
|
};
|
||||||
if (!srcfmt) {
|
if (!srcfmt) {
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
/* Functions to blit from N-bit surfaces to other surfaces */
|
/* Functions to blit from N-bit surfaces to other surfaces */
|
||||||
|
|
||||||
#if SDL_ALTIVEC_BLITTERS
|
#if SDL_ALTIVEC_BLITTERS
|
||||||
|
#ifdef HAVE_ALTIVEC_H
|
||||||
|
#include <altivec.h>
|
||||||
|
#endif
|
||||||
#define assert(X)
|
#define assert(X)
|
||||||
#ifdef __MACOSX__
|
#ifdef __MACOSX__
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
@ -108,9 +111,10 @@ calc_swizzle32(const SDL_PixelFormat * srcfmt, const SDL_PixelFormat * dstfmt)
|
||||||
/* ARGB */
|
/* ARGB */
|
||||||
const static const struct SDL_PixelFormat default_pixel_format = {
|
const static const struct SDL_PixelFormat default_pixel_format = {
|
||||||
0, NULL, 0, 0,
|
0, NULL, 0, 0,
|
||||||
|
{0, 0},
|
||||||
|
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
|
||||||
0, 0, 0, 0,
|
0, 0, 0, 0,
|
||||||
16, 8, 0, 24,
|
16, 8, 0, 24,
|
||||||
0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
|
|
||||||
0, NULL
|
0, NULL
|
||||||
};
|
};
|
||||||
if (!srcfmt) {
|
if (!srcfmt) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue