Mercurial > sdl-ios-xcode
changeset 2075:46661504398c
Logic error in SDL_video.c (used bitwise OR instead of logical OR).
Thanks, Suziki Masahiro.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 29 Nov 2006 10:22:59 +0000 |
parents | 9e6dc39f48b6 |
children | 939420dee849 |
files | src/video/SDL_video.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/SDL_video.c Tue Nov 21 23:24:33 2006 +0000 +++ b/src/video/SDL_video.c Wed Nov 29 10:22:59 2006 +0000 @@ -1785,7 +1785,7 @@ if (!renderer->SetTextureColorMod) { return -1; } - if (r < 255 | g < 255 | b < 255) { + if (r < 255 || g < 255 || b < 255) { texture->modMode |= SDL_TEXTUREMODULATE_COLOR; } else { texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR;