Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 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 | c9aa6bcb26f3 |
children | 9341a884a4d9 |
comparison
equal
deleted
inserted
replaced
2074:9e6dc39f48b6 | 2075:46661504398c |
---|---|
1783 | 1783 |
1784 renderer = texture->renderer; | 1784 renderer = texture->renderer; |
1785 if (!renderer->SetTextureColorMod) { | 1785 if (!renderer->SetTextureColorMod) { |
1786 return -1; | 1786 return -1; |
1787 } | 1787 } |
1788 if (r < 255 | g < 255 | b < 255) { | 1788 if (r < 255 || g < 255 || b < 255) { |
1789 texture->modMode |= SDL_TEXTUREMODULATE_COLOR; | 1789 texture->modMode |= SDL_TEXTUREMODULATE_COLOR; |
1790 } else { | 1790 } else { |
1791 texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR; | 1791 texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR; |
1792 } | 1792 } |
1793 texture->r = r; | 1793 texture->r = r; |