From 9836d6038c37e22e12e43c61c1bfb50e782ceacb Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 5 Jan 2020 06:19:32 +0100 Subject: [PATCH] Use SDL_Log instead of printf --- SourceX/DiabloUI/fonts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SourceX/DiabloUI/fonts.cpp b/SourceX/DiabloUI/fonts.cpp index 754d1c4b0..c1dec4b1b 100644 --- a/SourceX/DiabloUI/fonts.cpp +++ b/SourceX/DiabloUI/fonts.cpp @@ -52,7 +52,7 @@ void UnloadArtFonts() void LoadTtfFont() { if (!TTF_WasInit()) { if (TTF_Init() == -1) { - printf("TTF_Init: %s\n", TTF_GetError()); + SDL_Log("TTF_Init: %s", TTF_GetError()); exit(1); } atexit(TTF_Quit); @@ -60,7 +60,7 @@ void LoadTtfFont() { font = TTF_OpenFont(TTF_FONT_PATH, 17); if (font == NULL) { - printf("TTF_OpenFont: %s\n", TTF_GetError()); + SDL_Log("TTF_OpenFont: %s", TTF_GetError()); return; }