Mercurial > sdl-ios-xcode
changeset 2795:9e7ce3069096
Set the alpha mask fixing software rendering in OpenGL
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Nov 2008 22:11:01 +0000 |
parents | f7872b7a8732 |
children | 9f6601537163 |
files | src/video/SDL_yuv_sw.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_yuv_sw.c Thu Nov 27 21:53:18 2008 +0000 +++ b/src/video/SDL_yuv_sw.c Thu Nov 27 22:11:01 2008 +0000 @@ -939,10 +939,13 @@ for (i = 0; i < 256; ++i) { r_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Rmask)); r_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Rmask); + r_2_pix_alloc[i + 256] |= Amask; g_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Gmask)); g_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Gmask); + g_2_pix_alloc[i + 256] |= Amask; b_2_pix_alloc[i + 256] = i >> (8 - number_of_bits_set(Bmask)); b_2_pix_alloc[i + 256] <<= free_bits_at_bottom(Bmask); + b_2_pix_alloc[i + 256] |= Amask; } /*