Logic error in SDL_video.c (used bitwise OR instead of logical OR).

Thanks, Suziki Masahiro.
This commit is contained in:
Ryan C. Gordon
2006-11-29 10:22:59 +00:00
parent a5b36fd782
commit 756b168b3b

View File

@@ -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;