mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 11:36:32 -05:00
Logic error in SDL_video.c (used bitwise OR instead of logical OR).
Thanks, Suziki Masahiro.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user