src/video/SDL_video.c
changeset 2075 46661504398c
parent 2062 c9aa6bcb26f3
child 2119 9341a884a4d9
equal deleted inserted replaced
2074:9e6dc39f48b6 2075:46661504398c
  1783 
  1783 
  1784     renderer = texture->renderer;
  1784     renderer = texture->renderer;
  1785     if (!renderer->SetTextureColorMod) {
  1785     if (!renderer->SetTextureColorMod) {
  1786         return -1;
  1786         return -1;
  1787     }
  1787     }
  1788     if (r < 255 | g < 255 | b < 255) {
  1788     if (r < 255 || g < 255 || b < 255) {
  1789         texture->modMode |= SDL_TEXTUREMODULATE_COLOR;
  1789         texture->modMode |= SDL_TEXTUREMODULATE_COLOR;
  1790     } else {
  1790     } else {
  1791         texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR;
  1791         texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR;
  1792     }
  1792     }
  1793     texture->r = r;
  1793     texture->r = r;