src/video/SDL_blit_slow.c
changeset 5140 e743b9c3f6d6
parent 4472 791b3256fb22
child 5184 d976b67150c5
     1.1 --- a/src/video/SDL_blit_slow.c	Mon Jan 31 22:53:45 2011 -0800
     1.2 +++ b/src/video/SDL_blit_slow.c	Mon Jan 31 23:23:57 2011 -0800
     1.3 @@ -117,22 +117,13 @@
     1.4                      srcB = (srcB * srcA) / 255;
     1.5                  }
     1.6              }
     1.7 -            switch (flags &
     1.8 -                    (SDL_COPY_MASK | SDL_COPY_BLEND | SDL_COPY_ADD |
     1.9 -                     SDL_COPY_MOD)) {
    1.10 +            switch (flags & (SDL_COPY_BLEND | SDL_COPY_ADD)) {
    1.11              case 0:
    1.12                  dstR = srcR;
    1.13                  dstG = srcG;
    1.14                  dstB = srcB;
    1.15                  dstA = srcA;
    1.16                  break;
    1.17 -            case SDL_COPY_MASK:
    1.18 -                if (srcA) {
    1.19 -                    dstR = srcR;
    1.20 -                    dstG = srcG;
    1.21 -                    dstB = srcB;
    1.22 -                }
    1.23 -                break;
    1.24              case SDL_COPY_BLEND:
    1.25                  dstR = srcR + ((255 - srcA) * dstR) / 255;
    1.26                  dstG = srcG + ((255 - srcA) * dstG) / 255;
    1.27 @@ -149,11 +140,6 @@
    1.28                  if (dstB > 255)
    1.29                      dstB = 255;
    1.30                  break;
    1.31 -            case SDL_COPY_MOD:
    1.32 -                dstR = (srcR * dstR) / 255;
    1.33 -                dstG = (srcG * dstG) / 255;
    1.34 -                dstB = (srcB * dstB) / 255;
    1.35 -                break;
    1.36              }
    1.37              if (dst_fmt->Amask) {
    1.38                  ASSEMBLE_RGBA(dst, dstbpp, dst_fmt, dstR, dstG, dstB, dstA);