summaryrefslogtreecommitdiff
path: root/src/gui/fonts/font.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
commitea7ce2d1099761d4f10a1985cc1491dd306093fb (patch)
tree0ecc2ba76c949af2876ea3fe532d3796d4d0f666 /src/gui/fonts/font.cpp
parentd5a295a5ef8338a6d292bb3c60bddcfb8baf17bc (diff)
downloadplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.gz
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.bz2
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.xz
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.zip
Replace SDL macro defines to SDL_GetError.
Diffstat (limited to 'src/gui/fonts/font.cpp')
-rw-r--r--src/gui/fonts/font.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}