Browse Source

Use SDL_Log instead of printf

pull/540/head
Anders Jenbo 6 years ago committed by GitHub
parent
commit
9836d6038c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      SourceX/DiabloUI/fonts.cpp

4
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;
}

Loading…
Cancel
Save