mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
Use SDL_GetError() for SDL_ttf errors
This commit is contained in:
+1
-1
@@ -1094,7 +1094,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
font = TTF_OpenFont(fontname, DEFAULT_PTSIZE);
|
font = TTF_OpenFont(fontname, DEFAULT_PTSIZE);
|
||||||
if (!font) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user