Move analogue mode filter update logic to fixed-timestep loop

Otherwise if the analogue filter is scrolling, it'll scroll by REALLY
fast.
This commit is contained in:
Misa
2020-05-02 20:27:47 -07:00
committed by Ethan Lee
parent 995f0f126f
commit 97b8e062ff
3 changed files with 14 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ 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 );
#endif /* GRAPHICSUTIL_H */