diff src/video/SDL_blit_slow.c @ 3588:c5fe76962106

Fixed bug #843 Fixed colorkey comparison for 24 bits-per-pixel modes
author Sam Lantinga <slouken@libsdl.org>
date Thu, 17 Dec 2009 05:57:37 +0000
parents 99210400e8b9
children f7b03b6838cb
line wrap: on
line diff
--- 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);
                 }