Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

 Thanks, Suziki Masahiro.
  • Loading branch information
icculus committed Nov 29, 2006
1 parent 09141e5 commit 2a651c88427906b917d975933c48d4ac45d186f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 2a651c8

Please sign in to comment.