Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/rendering
diff options
context:
space:
mode:
Diffstat (limited to 'source/rendering')
-rw-r--r--source/rendering/StarFontTextureGroup.cpp4
-rw-r--r--source/rendering/StarFontTextureGroup.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/rendering/StarFontTextureGroup.cpp b/source/rendering/StarFontTextureGroup.cpp
index fe15381..76defee 100644
--- a/source/rendering/StarFontTextureGroup.cpp
+++ b/source/rendering/StarFontTextureGroup.cpp
@@ -28,9 +28,9 @@ String const& FontTextureGroup::activeFont() {
return m_fontName;
}
-void FontTextureGroup::addFont(FontPtr const& font, String const& name, bool default) {
+void FontTextureGroup::addFont(FontPtr const& font, String const& name, bool isDefault) {
m_fonts[name] = font;
- if (default)
+ if (isDefault)
m_defaultFont = m_font = font;
}
diff --git a/source/rendering/StarFontTextureGroup.hpp b/source/rendering/StarFontTextureGroup.hpp
index e75fd56..15d2895 100644
--- a/source/rendering/StarFontTextureGroup.hpp
+++ b/source/rendering/StarFontTextureGroup.hpp
@@ -35,7 +35,7 @@ public:
// Switches the current font
void switchFont(String const& font);
String const& activeFont();
- void addFont(FontPtr const& font, String const& name, bool default = false);
+ void addFont(FontPtr const& font, String const& name, bool isDefault = false);
void clearFonts();
private:
StringMap<FontPtr> m_fonts;