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]);