summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-04 03:28:21 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-04 03:28:21 +0300
commitd18b9616bbe54db5d33363a197c8b9efa6161fa8 (patch)
tree56b1bca0f9ca60699810e2bf31625365c0affd42 /src/gui/gui.cpp
parent07e988baf55b0e0f4b736e9305604536dbc872ff (diff)
downloadManaVerse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.gz
ManaVerse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.bz2
ManaVerse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.tar.xz
ManaVerse-d18b9616bbe54db5d33363a197c8b9efa6161fa8.zip
Rename TrueTypeFont to SDLFont.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp16
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,