diff options
Diffstat (limited to 'include/Text.hpp')
-rw-r--r-- | include/Text.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Text.hpp b/include/Text.hpp index 93ec0c1..4bb5ec0 100644 --- a/include/Text.hpp +++ b/include/Text.hpp @@ -13,8 +13,8 @@ namespace dchat class Text { public: - Text(const sf::Font &font); - Text(const sf::String &str, const sf::Font &font, unsigned int characterSize, float maxWidth, bool plainText = true); + Text(const sf::Font *font); + Text(const sf::String &str, const sf::Font *font, unsigned int characterSize, float maxWidth, bool plainText = true); void setString(const sf::String &str); void appendStringNewLine(const sf::String &str); @@ -52,7 +52,7 @@ namespace dchat }; sf::String str; - sf::Font font; + const sf::Font *font; unsigned int characterSize; sf::VertexArray vertices; float maxWidth; |