Logic error in SDL_video.c (used bitwise OR instead of logical OR).
Thanks, Suziki Masahiro. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402238
This commit is contained in:
parent
65dbe42d4b
commit
cf90d65b91
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue