We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
authorSam Lantinga <slouken@libsdl.org>
Fri, 08 Sep 2017 04:53:31 -0700
changeset 1146734e8c8090d9e
parent 11466 b24819a2250b
child 11468 a39f1b8ff998
We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
include/SDL_test_font.h
src/test/SDL_test_font.c
     1.1 --- a/include/SDL_test_font.h	Fri Sep 08 04:38:46 2017 -0700
     1.2 +++ b/include/SDL_test_font.h	Fri Sep 08 04:53:31 2017 -0700
     1.3 @@ -68,7 +68,7 @@
     1.4  /**
     1.5   *  \brief Cleanup textures used by font drawing functions.
     1.6   */
     1.7 -void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer);
     1.8 +void SDLTest_CleanupTextDrawing(void);
     1.9  
    1.10  /* Ends C function definitions when using C++ */
    1.11  #ifdef __cplusplus
     2.1 --- a/src/test/SDL_test_font.c	Fri Sep 08 04:38:46 2017 -0700
     2.2 +++ b/src/test/SDL_test_font.c	Fri Sep 08 04:53:31 2017 -0700
     2.3 @@ -3236,9 +3236,9 @@
     2.4      return (result);
     2.5  }
     2.6  
     2.7 -void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer)
     2.8 +void SDLTest_CleanupTextDrawing(void)
     2.9  {
    2.10 -    int i;
    2.11 +    unsigned int i;
    2.12      for (i = 0; i < SDL_arraysize(SDLTest_CharTextureCache); ++i) {
    2.13          if (SDLTest_CharTextureCache[i]) {
    2.14              SDL_DestroyTexture(SDLTest_CharTextureCache[i]);