Remove unused function FlipSurfaceHorizontal()

This function was marked as unused by cppcheck.
This commit is contained in:
Misa 2021-01-02 00:09:13 -08:00 committed by Ethan Lee
parent 6795856431
commit 0e0f5c47a5
2 changed files with 0 additions and 23 deletions

View File

@ -136,28 +136,6 @@ SDL_Surface * ScaleSurface( SDL_Surface *_surface, int Width, int Height, SDL_Su
return _ret;
}
SDL_Surface * FlipSurfaceHorizontal(SDL_Surface* _src)
{
SDL_Surface * ret = SDL_CreateRGBSurface(_src->flags, _src->w, _src->h, _src->format->BitsPerPixel,
_src->format->Rmask, _src->format->Gmask, _src->format->Bmask, _src->format->Amask);
if(ret == NULL)
{
return NULL;
}
for(Sint32 y = 0; y < _src->h; y++)
{
for(Sint32 x = 0; x < _src->w; x++)
{
DrawPixel(ret,(_src->w -1) -x,y,ReadPixel(_src, x, y));
}
}
return ret;
}
SDL_Surface * FlipSurfaceVerticle(SDL_Surface* _src)
{
SDL_Surface * ret = SDL_CreateRGBSurface(_src->flags, _src->w, _src->h, _src->format->BitsPerPixel,

View File

@ -39,7 +39,6 @@ void FillRect( SDL_Surface* surface, SDL_Rect rect, int rgba );
void ScrollSurface(SDL_Surface* _src, int pX, int py);
SDL_Surface * FlipSurfaceHorizontal(SDL_Surface* _src);
SDL_Surface * FlipSurfaceVerticle(SDL_Surface* _src);
void UpdateFilter();
SDL_Surface* ApplyFilter( SDL_Surface* _src );