mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove unused function FlipSurfaceHorizontal()
This function was marked as unused by cppcheck.
This commit is contained in:
parent
6795856431
commit
0e0f5c47a5
2 changed files with 0 additions and 23 deletions
|
@ -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,
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue