mirror of
https://github.com/yawut/SDL.git
synced 2026-04-26 00:57:36 -05:00
parent
be4c0844af
commit
d7affbbbaa
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user