src/video/SDL_blit_N.c
changeset 6304 9821f5c9b7bd
parent 6295 a2c60beb6115
child 6410 f6c0a9462662
     1.1 --- a/src/video/SDL_blit_N.c	Tue Feb 28 21:58:36 2012 -0500
     1.2 +++ b/src/video/SDL_blit_N.c	Sun Apr 08 03:59:36 2012 -0400
     1.3 @@ -708,7 +708,7 @@
     1.4              bits = *(src++);
     1.5              RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
     1.6              if(!srcfmt->Amask)
     1.7 -              a = srcfmt->alpha;
     1.8 +              a = info->a;
     1.9              *(dst++) = MAKE8888(dstfmt, r, g, b, a);
    1.10              width--;
    1.11          }
    1.12 @@ -737,7 +737,7 @@
    1.13              bits = *(src++);    /* max 7 pixels, don't bother with prefetch. */
    1.14              RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
    1.15              if(!srcfmt->Amask)
    1.16 -              a = srcfmt->alpha;
    1.17 +              a = info->a;
    1.18              *(dst++) = MAKE8888(dstfmt, r, g, b, a);
    1.19              extrawidth--;
    1.20          }
    1.21 @@ -795,7 +795,7 @@
    1.22              bits = *(src++);
    1.23              RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
    1.24              if(!srcfmt->Amask)
    1.25 -              a = srcfmt->alpha;
    1.26 +              a = info->a;
    1.27              *(dst++) = MAKE8888(dstfmt, r, g, b, a);
    1.28              width--;
    1.29          }
    1.30 @@ -828,7 +828,7 @@
    1.31              bits = *(src++);    /* max 7 pixels, don't bother with prefetch. */
    1.32              RGBA_FROM_8888(bits, srcfmt, r, g, b, a);
    1.33              if(!srcfmt->Amask)
    1.34 -              a = srcfmt->alpha;
    1.35 +              a = info->a;
    1.36              *(dst++) = MAKE8888(dstfmt, r, g, b, a);
    1.37              extrawidth--;
    1.38          }