Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit_slow.c @ 3588:c5fe76962106
Fixed bug #843
Fixed colorkey comparison for 24 bits-per-pixel modes
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 17 Dec 2009 05:57:37 +0000 |
parents | 99210400e8b9 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3587:2080e8d75ac6 | 3588:c5fe76962106 |
---|---|
79 srcB); | 79 srcB); |
80 srcA = 0xFF; | 80 srcA = 0xFF; |
81 } | 81 } |
82 if (flags & SDL_COPY_COLORKEY) { | 82 if (flags & SDL_COPY_COLORKEY) { |
83 /* srcpixel isn't set for 24 bpp */ | 83 /* srcpixel isn't set for 24 bpp */ |
84 if (srcbpp == 24) { | 84 if (srcbpp == 3) { |
85 srcpixel = (srcR << src_fmt->Rshift) | | 85 srcpixel = (srcR << src_fmt->Rshift) | |
86 (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift); | 86 (srcG << src_fmt->Gshift) | (srcB << src_fmt->Bshift); |
87 } | 87 } |
88 if (srcpixel == info->colorkey) { | 88 if (srcpixel == info->colorkey) { |
89 posx += incx; | 89 posx += incx; |