diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-13 22:30:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-13 22:30:56 +0300 |
commit | bbb587c352d48d4774133b56ce4c7f9bfd77c1e7 (patch) | |
tree | 971c14035fe8f13c7477523743e515d192423e40 /src/gui/gui.cpp | |
parent | 9cae83ad91a9d45fccc617eb9756ea83a5831e65 (diff) | |
download | manaplus-bbb587c352d48d4774133b56ce4c7f9bfd77c1e7.tar.gz manaplus-bbb587c352d48d4774133b56ce4c7f9bfd77c1e7.tar.bz2 manaplus-bbb587c352d48d4774133b56ce4c7f9bfd77c1e7.tar.xz manaplus-bbb587c352d48d4774133b56ce4c7f9bfd77c1e7.zip |
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index d8cc42011..8d05fc26d 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -449,26 +449,25 @@ void Gui::updateFonts() if (fontFile.empty()) fontFile = branding.getStringValue("font"); - static_cast<SDLFont*>(mGuiFont)->loadFont(fontFile, fontSize); + mGuiFont->loadFont(fontFile, fontSize); fontFile = config.getValue("particleFont", ""); if (fontFile.empty()) fontFile = branding.getStringValue("particleFont"); - static_cast<SDLFont*>(mInfoParticleFont)->loadFont( - fontFile, fontSize, TTF_STYLE_BOLD); + mInfoParticleFont->loadFont(fontFile, fontSize, TTF_STYLE_BOLD); fontFile = config.getValue("boldFont", ""); if (fontFile.empty()) fontFile = branding.getStringValue("boldFont"); - static_cast<SDLFont*>(boldFont)->loadFont(fontFile, fontSize); + boldFont->loadFont(fontFile, fontSize); fontFile = config.getValue("secureFont", ""); if (fontFile.empty()) fontFile = branding.getStringValue("secureFont"); - static_cast<SDLFont*>(mSecureFont)->loadFont(fontFile, fontSize); + mSecureFont->loadFont(fontFile, fontSize); } void Gui::distributeMouseEvent(gcn::Widget* source, int type, int button, |