From 4657d9f33cdc369611be9c9f454cc94521b43208 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 8 Sep 2017 04:53:31 -0700 Subject: [PATCH] We don't need to pass the renderer into SDLTest_CleanupTextDrawing() --- include/SDL_test_font.h | 2 +- src/test/SDL_test_font.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SDL_test_font.h b/include/SDL_test_font.h index 434e808a9..58c9f9d5e 100644 --- a/include/SDL_test_font.h +++ b/include/SDL_test_font.h @@ -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 diff --git a/src/test/SDL_test_font.c b/src/test/SDL_test_font.c index 0be27f6a7..04051a50e 100644 --- a/src/test/SDL_test_font.c +++ b/src/test/SDL_test_font.c @@ -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]);