Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #843
Browse files Browse the repository at this point in the history
Fixed colorkey comparison for 24 bits-per-pixel modes
  • Loading branch information
slouken committed Dec 17, 2009
1 parent fa90aa1 commit 922189f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_blit_slow.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 922189f

Please sign in to comment.