
From Bug #36:

There are a couple of issues with the selection of Altivec alpha-blitting
routines in CalculateAlphaBlit() in src/video/SDL_Blit_A.c.

1) There's no check for the presence of Altivec when checking if the
Blit32to565PixelAlphaAltivec() routine can be selected.

2) Altivec cannot be used in video memory, and there's no check if the
destination surface is a hardware surface. (Alpha-blitting to a hardware
surface with GPU support is a bad idea, but somebody's bound to do it anyway.)

Patch to fix these attached.


git-svn-id: 75429ccc2030f235ccf16e6b9b7f8e83d5edd22e@1773 c70aab31-4412-0410-b14c-859654838e24

albertz/sdl,albertz/sdl,albertz/sdl,albertz/sdl