# HG changeset patch # User Sam Lantinga # Date 1261029457 0 # Node ID c5fe76962106bdd6eb9dea53f6eae8ba8be50720 # Parent 2080e8d75ac6bc9ff0a83558d525042a1d0ab7ba Fixed bug #843 Fixed colorkey comparison for 24 bits-per-pixel modes diff -r 2080e8d75ac6 -r c5fe76962106 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); }