From 2a651c88427906b917d975933c48d4ac45d186f1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 29 Nov 2006 10:22:59 +0000 Subject: [PATCH] Logic error in SDL_video.c (used bitwise OR instead of logical OR). Thanks, Suziki Masahiro. --- src/video/SDL_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index aff00c70c..71743d887 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1785,7 +1785,7 @@ SDL_SetTextureColorMod(SDL_TextureID textureID, Uint8 r, Uint8 g, Uint8 b) 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;