mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 18:04:09 +03:00
Add ClearSurface()
This is a function that does what it says - it clears the given surface. This just means doing a FillRect(), but it's better to use this function because it conveys intent better.
This commit is contained in:
@@ -390,6 +390,11 @@ void FillRect( SDL_Surface* _surface, SDL_Rect rect, int rgba )
|
||||
SDL_FillRect(_surface, &rect, rgba);
|
||||
}
|
||||
|
||||
void ClearSurface(SDL_Surface* surface)
|
||||
{
|
||||
SDL_FillRect(surface, NULL, 0x00000000);
|
||||
}
|
||||
|
||||
void ScrollSurface( SDL_Surface* _src, int _pX, int _pY )
|
||||
{
|
||||
SDL_Surface* part1 = NULL;
|
||||
|
||||
Reference in New Issue
Block a user