From 36a091cc43067c62e581d2d1d20b928ca2514519 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 27 Aug 2024 19:02:28 -0700 Subject: [PATCH] Use SDL_GetError() for SDL_ttf errors --- test/testime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testime.c b/test/testime.c index 9176cb40b..addbfc55f 100644 --- a/test/testime.c +++ b/test/testime.c @@ -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