diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-04 03:28:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-04 03:28:21 +0300 |
commit | d18b9616bbe54db5d33363a197c8b9efa6161fa8 (patch) | |
tree | 56b1bca0f9ca60699810e2bf31625365c0affd42 /src/gui/gui.cpp | |
parent | 07e988baf55b0e0f4b736e9305604536dbc872ff (diff) | |
download | plus-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.gz plus-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.bz2 plus-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.xz plus-d18b9616bbe54db5d33363a197c8b9efa6161fa8.zip |
Rename TrueTypeFont to SDLFont.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index baccb7796..aecb6a6f8 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -26,7 +26,7 @@ #include "gui/palette.h" #include "gui/sdlinput.h" #include "gui/theme.h" -#include "gui/truetypefont.h" +#include "gui/sdlfont.h" #include "gui/widgets/mouseevent.h" #include "gui/widgets/window.h" @@ -113,7 +113,7 @@ Gui::Gui(Graphics *graphics): try { - mGuiFont = new TrueTypeFont(fontFile, fontSize); + mGuiFont = new SDLFont(fontFile, fontSize); } catch (const gcn::Exception &e) { @@ -128,7 +128,7 @@ Gui::Gui(Graphics *graphics): try { - mInfoParticleFont = new TrueTypeFont( + mInfoParticleFont = new SDLFont( fontFile, fontSize, TTF_STYLE_BOLD); } catch (const gcn::Exception &e) @@ -144,7 +144,7 @@ Gui::Gui(Graphics *graphics): try { - boldFont = new TrueTypeFont(fontFile, fontSize); + boldFont = new SDLFont(fontFile, fontSize); } catch (const gcn::Exception &e) { @@ -159,7 +159,7 @@ Gui::Gui(Graphics *graphics): try { - mHelpFont = new TrueTypeFont(fontFile, fontSize); + mHelpFont = new SDLFont(fontFile, fontSize); } catch (const gcn::Exception &e) { @@ -295,20 +295,20 @@ void Gui::updateFonts() if (fontFile.empty()) fontFile = branding.getStringValue("font"); - static_cast<TrueTypeFont*>(mGuiFont)->loadFont(fontFile, fontSize); + static_cast<SDLFont*>(mGuiFont)->loadFont(fontFile, fontSize); fontFile = config.getValue("particleFont", ""); if (fontFile.empty()) fontFile = branding.getStringValue("particleFont"); - static_cast<TrueTypeFont*>(mInfoParticleFont)->loadFont( + static_cast<SDLFont*>(mInfoParticleFont)->loadFont( fontFile, fontSize, TTF_STYLE_BOLD); fontFile = config.getValue("boldFont", ""); if (fontFile.empty()) fontFile = branding.getStringValue("boldFont"); - static_cast<TrueTypeFont*>(boldFont)->loadFont(fontFile, fontSize); + static_cast<SDLFont*>(boldFont)->loadFont(fontFile, fontSize); } void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button, |