Logic error in SDL_video.c (used bitwise OR instead of logical OR).
authorRyan C. Gordon <icculus@icculus.org>
Wed, 29 Nov 2006 10:22:59 +0000
changeset 207546661504398c
parent 2074 9e6dc39f48b6
child 2076 939420dee849
Logic error in SDL_video.c (used bitwise OR instead of logical OR).
Thanks, Suziki Masahiro.
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_video.c	Tue Nov 21 23:24:33 2006 +0000
     1.2 +++ b/src/video/SDL_video.c	Wed Nov 29 10:22:59 2006 +0000
     1.3 @@ -1785,7 +1785,7 @@
     1.4      if (!renderer->SetTextureColorMod) {
     1.5          return -1;
     1.6      }
     1.7 -    if (r < 255 | g < 255 | b < 255) {
     1.8 +    if (r < 255 || g < 255 || b < 255) {
     1.9          texture->modMode |= SDL_TEXTUREMODULATE_COLOR;
    1.10      } else {
    1.11          texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR;