Ax ScaleSurfaceSlow() in favor of ScaleSurface()

ScaleSurfaceSlow() uses DrawPixel() instead of SDL_FillRect() to scale a
given surface, which is slow and inefficient, and makes it less likely
that the game could be moved to SDL_Render.

Unfortunately, it has this weird -1,-1 offset, but that will be fixed in
the next commit.
This commit is contained in:
Misa
2020-08-04 13:09:13 -07:00
committed by Ethan Lee
parent 57dca99a4e
commit 5f776faba7
3 changed files with 2 additions and 35 deletions

View File

@@ -43,7 +43,6 @@ void ScrollSurface(SDL_Surface* _src, int pX, int py);
SDL_Surface * FlipSurfaceHorizontal(SDL_Surface* _src);
SDL_Surface * FlipSurfaceVerticle(SDL_Surface* _src);
SDL_Surface * ScaleSurfaceSlow( SDL_Surface *_surface, int Width, int Height );
void UpdateFilter();
SDL_Surface* ApplyFilter( SDL_Surface* _src );