test: fix shadowing variables

This commit is contained in:
Christian Rauch
2021-03-26 22:52:30 +00:00
committed by Sam Lantinga
parent b972258d56
commit 570768f627
7 changed files with 18 additions and 19 deletions

View File

@@ -67,7 +67,7 @@ void quit(int rc)
exit(rc);
}
void UpdateTexture(SDL_Texture *texture, int frame)
void UpdateTexture(SDL_Texture *texture)
{
SDL_Color *color;
Uint8 *src;
@@ -110,7 +110,7 @@ loop()
}
frame = (frame + 1) % MOOSEFRAMES_COUNT;
UpdateTexture(MooseTexture, frame);
UpdateTexture(MooseTexture);
SDL_RenderClear(renderer);
SDL_RenderCopy(renderer, MooseTexture, NULL, NULL);