changeset 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 2080e8d75ac6
children 06f0768a904c
files src/video/SDL_blit_slow.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);
                 }