Fixed bug #843
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Dec 2009 05:57:37 +0000
changeset 3588 c5fe76962106
parent 3587 2080e8d75ac6
child 3589 06f0768a904c
Fixed bug #843 Fixed colorkey comparison for 24 bits-per-pixel modes
src/video/SDL_blit_slow.c
--- a/src/video/SDL_blit_slow.c	Thu Dec 17 04:01:29 2009 +0000
+++ b/src/video/SDL_blit_slow.c	Thu Dec 17 05:57:37 2009 +0000
@@ -81,7 +81,7 @@
             }
             if (flags & SDL_COPY_COLORKEY) {
                 /* srcpixel isn't set for 24 bpp */
-                if (srcbpp == 24) {
+                if (srcbpp == 3) {
                     srcpixel = (srcR << src_fmt->Rshift) |
                         (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift);
                 }