Fixed bug #843
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Dec 2009 05:57:37 +0000
changeset 3588c5fe76962106
parent 3587 2080e8d75ac6
child 3589 06f0768a904c
Fixed bug #843

Fixed colorkey comparison for 24 bits-per-pixel modes
src/video/SDL_blit_slow.c
     1.1 --- a/src/video/SDL_blit_slow.c	Thu Dec 17 04:01:29 2009 +0000
     1.2 +++ b/src/video/SDL_blit_slow.c	Thu Dec 17 05:57:37 2009 +0000
     1.3 @@ -81,7 +81,7 @@
     1.4              }
     1.5              if (flags & SDL_COPY_COLORKEY) {
     1.6                  /* srcpixel isn't set for 24 bpp */
     1.7 -                if (srcbpp == 24) {
     1.8 +                if (srcbpp == 3) {
     1.9                      srcpixel = (srcR << src_fmt->Rshift) |
    1.10                          (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift);
    1.11                  }