mirror of
https://github.com/encounter/SDL.git
synced 2025-12-21 10:49:12 +00:00
test: fix shadowing variables
This commit is contained in:
committed by
Sam Lantinga
parent
b972258d56
commit
570768f627
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user