Use SDL_GetError() for SDL_ttf errors

This commit is contained in:
Sam Lantinga 2024-08-27 19:02:28 -07:00
parent 5dc5b4b83c
commit 36a091cc43
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ int main(int argc, char *argv[])
font = TTF_OpenFont(fontname, DEFAULT_PTSIZE);
if (!font) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to find font: %s\n", TTF_GetError());
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to find font: %s\n", SDL_GetError());
return -1;
}
#else