fix text_freeFontCache prototype
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ typedef struct FontCacheObject {
|
|||||||
FontCacheObject_t fontCache[FONT_CACHE_SIZE];
|
FontCacheObject_t fontCache[FONT_CACHE_SIZE];
|
||||||
unsigned fontCacheSize = 0;
|
unsigned fontCacheSize = 0;
|
||||||
|
|
||||||
void text_freeFontCache(){
|
void text_freeFontCache(void){
|
||||||
for(unsigned i = 0; i < fontCacheSize; ++i){
|
for(unsigned i = 0; i < fontCacheSize; ++i){
|
||||||
free(fontCache[i].file);
|
free(fontCache[i].file);
|
||||||
TTF_CloseFont(fontCache[i].font);
|
TTF_CloseFont(fontCache[i].font);
|
||||||
|
|||||||
+1
-1
@@ -13,6 +13,6 @@ typedef struct {
|
|||||||
|
|
||||||
int text_renderText(RenderObject_t* renderObject, Position position, SDL_Color color, const char* fontFilename, int fontSize, char* format, ...);
|
int text_renderText(RenderObject_t* renderObject, Position position, SDL_Color color, const char* fontFilename, int fontSize, char* format, ...);
|
||||||
|
|
||||||
void text_freeFontCache();
|
void text_freeFontCache(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user