Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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.
  • Loading branch information
slouken committed Jan 7, 2012
1 parent 66243a7 commit 87f1b90f18172840878bc64c0e59992d90f0e5d6

File 1 of 2 in 87f1b90

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

0 comments on commit 87f1b90

Please sign in to comment.