Removed now-unused blend_rgba function

Might want to implement something like this as part of color_t.
This commit is contained in:
Charles Dang 2017-03-22 12:18:38 +11:00
parent 01035f0adc
commit a3cd8224f6
2 changed files with 0 additions and 20 deletions

View file

@ -173,16 +173,6 @@ surface stretch_surface_vertical(
return dst;
}
Uint32 blend_rgba(const surface& surf, unsigned char r, unsigned char g, unsigned char b, unsigned char a, unsigned char drop)
{
// We simply decrement each component.
if(r < drop) r = 0; else r -= drop;
if(g < drop) g = 0; else g -= drop;
if(b < drop) b = 0; else b -= drop;
return SDL_MapRGBA(surf->format, r, g, b, a);
}
surface scale_surface_xbrz(const surface & surf, size_t z)
{
if(surf == nullptr)

View file

@ -39,16 +39,6 @@ inline void sdl_copy_portion(const surface& screen, SDL_Rect* screen_rect, surfa
SDL_SetSurfaceBlendMode(screen, SDL_BLENDMODE_BLEND);
}
/**
* This method blends a RGBA color. The method takes as input a surface,
* the RGB color to blend and a value specifying how much blending to apply.
* The blended color is returned.
* Caution: if you use a transparent color,
* make sure the resulting color is not equal to the transparent color.
*/
Uint32 blend_rgba(const surface& surf, unsigned char r, unsigned char g, unsigned char b,
unsigned char a, unsigned char drop);
/**
* Check that the surface is neutral bpp 32.
*