Navigation Menu

Skip to content

Commit

Permalink
We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 8, 2017
1 parent 65c55fd commit 4657d9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/SDL_test_font.h
Expand Up @@ -68,7 +68,7 @@ int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
/**
* \brief Cleanup textures used by font drawing functions.
*/
void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer);
void SDLTest_CleanupTextDrawing(void);

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
Expand Down
4 changes: 2 additions & 2 deletions src/test/SDL_test_font.c
Expand Up @@ -3236,9 +3236,9 @@ int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s)
return (result);
}

void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer)
void SDLTest_CleanupTextDrawing(void)
{
int i;
unsigned int i;
for (i = 0; i < SDL_arraysize(SDLTest_CharTextureCache); ++i) {
if (SDLTest_CharTextureCache[i]) {
SDL_DestroyTexture(SDLTest_CharTextureCache[i]);
Expand Down

0 comments on commit 4657d9f

Please sign in to comment.