|
@@ -1408,11 +1408,6 @@ int SDL_SetTextureColorMod(SDL_Texture *texture, Uint8 r, Uint8 g, Uint8 b)
|
|
|
{
|
|
|
CHECK_TEXTURE_MAGIC(texture, -1);
|
|
|
|
|
|
- if (r < 255 || g < 255 || b < 255) {
|
|
|
- texture->modMode |= SDL_TEXTUREMODULATE_COLOR;
|
|
|
- } else {
|
|
|
- texture->modMode &= ~SDL_TEXTUREMODULATE_COLOR;
|
|
|
- }
|
|
|
texture->color.r = r;
|
|
|
texture->color.g = g;
|
|
|
texture->color.b = b;
|
|
@@ -1442,11 +1437,6 @@ int SDL_SetTextureAlphaMod(SDL_Texture *texture, Uint8 alpha)
|
|
|
{
|
|
|
CHECK_TEXTURE_MAGIC(texture, -1);
|
|
|
|
|
|
- if (alpha < 255) {
|
|
|
- texture->modMode |= SDL_TEXTUREMODULATE_ALPHA;
|
|
|
- } else {
|
|
|
- texture->modMode &= ~SDL_TEXTUREMODULATE_ALPHA;
|
|
|
- }
|
|
|
texture->color.a = alpha;
|
|
|
if (texture->native) {
|
|
|
return SDL_SetTextureAlphaMod(texture->native, alpha);
|