1.1 --- a/src/video/SDL_blit_slow.c Sat Oct 01 10:43:01 2016 -0700
1.2 +++ b/src/video/SDL_blit_slow.c Sat Oct 01 10:46:10 2016 -0700
1.3 @@ -46,6 +46,8 @@
1.4 SDL_PixelFormat *dst_fmt = info->dst_fmt;
1.5 int srcbpp = src_fmt->BytesPerPixel;
1.6 int dstbpp = dst_fmt->BytesPerPixel;
1.7 + Uint32 rgbmask = ~src_fmt->Amask;
1.8 + Uint32 ckey = info->colorkey & rgbmask;
1.9
1.10 srcy = 0;
1.11 posy = 0;
1.12 @@ -85,7 +87,7 @@
1.13 srcpixel = (srcR << src_fmt->Rshift) |
1.14 (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift);
1.15 }
1.16 - if (srcpixel == info->colorkey) {
1.17 + if ((srcpixel & rgbmask) == ckey) {
1.18 posx += incx;
1.19 dst += dstbpp;
1.20 continue;