Mercurial > sdl-ios-xcode
diff src/video/SDL_shape.c @ 4808:2ae79ed78a5a
More work on color-key mode.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Fri, 23 Jul 2010 01:48:42 -0400 |
parents | c9eb95f29770 |
children | 329708ffe2a7 |
line wrap: on
line diff
--- a/src/video/SDL_shape.c Thu Jul 22 23:11:01 2010 -0400 +++ b/src/video/SDL_shape.c Fri Jul 23 01:48:42 2010 -0400 @@ -96,7 +96,7 @@ break; case(ShapeModeColorKey): key = mode.parameters.colorKey; - bitmap[bitmap_pixel / ppb] |= (key.r == r && key.g == g && key.b == b ? value : 0) << ((ppb - 1) - (bitmap_pixel % ppb)); + bitmap[bitmap_pixel / ppb] |= ((key.r == r && key.g == g && key.b == b) ? value : 0) << ((ppb - 1) - (bitmap_pixel % ppb)); break; } }