summaryrefslogtreecommitdiff
path: root/src/blupi.cxx
diff options
context:
space:
mode:
authorMathieu Schroeter <mathieu@schroetersa.ch>2022-06-24 23:53:18 +0200
committerMathieu Schroeter <mathieu@schroetersa.ch>2022-06-24 23:53:36 +0200
commit0631474c2332df186c698e840f2306724b2e92a3 (patch)
tree4e7e55ea2551aea31ef67fb66bf3a29ba7f889ea /src/blupi.cxx
parente9c99fbad981e9ca8fdb2c3e015bba532a655ebf (diff)
Add initial stuff to use SDL_ttf
Diffstat (limited to 'src/blupi.cxx')
-rw-r--r--src/blupi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/blupi.cxx b/src/blupi.cxx
index e9fe1ec..56f0b8d 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -32,6 +32,7 @@
#include <vector>
#include <SDL_image.h>
+#include <SDL_ttf.h>
#include <argagg/argagg.hpp>
#ifdef USE_CURL
#include <curl/curl.h>
@@ -801,6 +802,11 @@ DoInit (int argc, char * argv[], bool & exit)
return EXIT_FAILURE;
}
+ if (TTF_Init () < 0) {
+ SDL_Log ("Couldn't initialize TTF: %s", SDL_GetError ());
+ return EXIT_FAILURE;
+ }
+
if (!(g_settingsOverload & SETTING_LEGACY))
Display::getDisplay ().readDisplaySize ();