diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-29 14:02:01 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-29 14:06:41 -0700 |
commit | a5c8eae057746618443c788fcaa04221d8ad7ba4 (patch) | |
tree | ab104a2dd1f931730eef50365434b8ac0896ca8b /src/main.cpp | |
parent | 6b680b60af9084767fd50737df763a89ca2c2919 (diff) | |
download | mana-a5c8eae057746618443c788fcaa04221d8ad7ba4.tar.gz mana-a5c8eae057746618443c788fcaa04221d8ad7ba4.tar.bz2 mana-a5c8eae057746618443c788fcaa04221d8ad7ba4.tar.xz mana-a5c8eae057746618443c788fcaa04221d8ad7ba4.zip |
Added support for True Type Fonts using GUIChan's inbuilt SDLTrueType
class.
NOTE: This commit adds a brand new dependency (SDL_TTF). Make sure to
install it, regenerate your config files, reconfigure, and then install
before attempting to compile.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 818a4e32..12789d80 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -34,6 +34,8 @@ #include <libxml/parser.h> +#include <SDL/SDL_ttf.h> + #include "configuration.h" #include "game.h" #include "graphics.h" @@ -399,6 +401,7 @@ void init_engine(const Options &options) // Initialize the item shortcuts. itemShortcut = new ItemShortcut(); + TTF_Init(); gui = new Gui(graphics); state = LOGIN_STATE; /**< Initial game state */ @@ -1052,6 +1055,7 @@ int main(int argc, char *argv[]) delete network; SDLNet_Quit(); + TTF_Quit(); if (nullFile) { |