mirror of
https://github.com/joel16/SDL2.git
synced 2025-03-04 17:39:32 +00:00
Fixed bug #843
Fixed colorkey comparison for 24 bits-per-pixel modes --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404337
This commit is contained in:
parent
8c0b853255
commit
8df92cace1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user