Commit 8df92cac authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #843

Fixed colorkey comparison for 24 bits-per-pixel modes

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404337
parent 8c0b8532
...@@ -81,7 +81,7 @@ SDL_Blit_Slow(SDL_BlitInfo * info) ...@@ -81,7 +81,7 @@ SDL_Blit_Slow(SDL_BlitInfo * info)
} }
if (flags & SDL_COPY_COLORKEY) { if (flags & SDL_COPY_COLORKEY) {
/* srcpixel isn't set for 24 bpp */ /* srcpixel isn't set for 24 bpp */
if (srcbpp == 24) { if (srcbpp == 3) {
srcpixel = (srcR << src_fmt->Rshift) | srcpixel = (srcR << src_fmt->Rshift) |
(srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift); (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment