Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug #843

Fixed colorkey comparison for 24 bits-per-pixel modes
  • Loading branch information
slouken committed Dec 17, 2009
1 parent fa90aa1 commit 922189f34123631e4b752707a4c2c71c69da51de
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_blit_slow.c
@@ -81,7 +81,7 @@ SDL_Blit_Slow(SDL_BlitInfo * info)
}
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);
}

0 comments on commit 922189f

Please sign in to comment.