aboutsummaryrefslogtreecommitdiff
path: root/src/MessageBoard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MessageBoard.cpp')
-rw-r--r--src/MessageBoard.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MessageBoard.cpp b/src/MessageBoard.cpp
index 250f234..cee3e50 100644
--- a/src/MessageBoard.cpp
+++ b/src/MessageBoard.cpp
@@ -68,6 +68,7 @@ namespace dchat
void MessageBoard::drawDefault(sf::RenderWindow &window, Cache &cache)
{
+ const float LINE_SPACING = 5.0f * Settings::getScaling();
const float MESSAGE_PADDING_TOP = 25.0f;
const float MESSAGE_PADDING_BOTTOM = 30.0f;
@@ -116,6 +117,7 @@ namespace dchat
message->text.setCharacterSize(18 * Settings::getScaling());
message->text.setMaxWidth(backgroundSize.x);
message->text.setPosition(sf::Vector2f(floor(position.x), floor(position.y)));
+ message->text.setLineSpacing(LINE_SPACING);
message->text.draw(window, cache);
position.y += (message->text.getHeight() + MESSAGE_PADDING_BOTTOM * Settings::getScaling());