src/video/SDL_blit_A.c
branchgsoc2008_nds
changeset 2698 e1da92da346c
parent 2291 dc3dd3a0bf02
child 2853 6258fa7cd300
     1.1 --- a/src/video/SDL_blit_A.c	Thu Aug 21 12:38:21 2008 +0000
     1.2 +++ b/src/video/SDL_blit_A.c	Wed Aug 27 04:23:38 2008 +0000
     1.3 @@ -283,8 +283,8 @@
     1.4          amult = alpha | (alpha << 8);
     1.5          amult = amult | (amult << 16);
     1.6          chanmask =
     1.7 -            (0xff << df->Rshift) | (0xff << df->Gshift) | (0xff << df->
     1.8 -                                                           Bshift);
     1.9 +            (0xff << df->Rshift) | (0xff << df->
    1.10 +                                    Gshift) | (0xff << df->Bshift);
    1.11          mm_alpha = _mm_set_pi32(0, amult & chanmask);   /* 0000AAAA -> mm_alpha, minus 1 chan */
    1.12          mm_alpha = _mm_unpacklo_pi8(mm_alpha, mm_zero); /* 0A0A0A0A -> mm_alpha, minus 1 chan */
    1.13          /* at this point mm_alpha can be 000A0A0A or 0A0A0A00 or another combo */
    1.14 @@ -526,8 +526,8 @@
    1.15      /* Use zero for alpha if either surface doesn't have alpha */
    1.16      if (dstfmt->Amask) {
    1.17          amask =
    1.18 -            ((srcfmt->Amask) ? RESHIFT(srcfmt->Ashift) : 0x10) << (dstfmt->
    1.19 -                                                                   Ashift);
    1.20 +            ((srcfmt->Amask) ? RESHIFT(srcfmt->
    1.21 +                                       Ashift) : 0x10) << (dstfmt->Ashift);
    1.22      } else {
    1.23          amask =
    1.24              0x10101010 & ((dstfmt->Rmask | dstfmt->Gmask | dstfmt->Bmask) ^