From ea7ce2d1099761d4f10a1985cc1491dd306093fb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Sep 2017 04:18:31 +0300 Subject: Replace SDL macro defines to SDL_GetError. --- src/gui/fonts/font.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index a2919481c..2ac2bcb4a 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -116,7 +116,7 @@ Font::Font(std::string filename, if (TTF_Init() == -1) { logger->error("Unable to initialize SDL_ttf: " + - std::string(TTF_GetError())); + std::string(SDL_GetError())); } } @@ -154,7 +154,7 @@ Font::Font(std::string filename, filename.c_str()); #endif // UNITTESTS logger->error("Font::Font: " + - std::string(TTF_GetError())); + std::string(SDL_GetError())); } else { @@ -222,7 +222,7 @@ void Font::loadFont(std::string filename, if (fontCounter == 0 && TTF_Init() == -1) { logger->log("Unable to initialize SDL_ttf: " + - std::string(TTF_GetError())); + std::string(SDL_GetError())); return; } @@ -232,7 +232,7 @@ void Font::loadFont(std::string filename, if (font == nullptr) { logger->log("Font::Font: " + - std::string(TTF_GetError())); + std::string(SDL_GetError())); return; } -- cgit v1.2.3-60-g2f50