From 73a8952e3dd2eae66f01721a6aec2053d185c6a8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 May 2018 06:09:24 +0200 Subject: Update libpreview, also render page description --- src/MessageBoard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MessageBoard.cpp') diff --git a/src/MessageBoard.cpp b/src/MessageBoard.cpp index bc53ae3..8e1525f 100644 --- a/src/MessageBoard.cpp +++ b/src/MessageBoard.cpp @@ -215,7 +215,7 @@ namespace dchat } // No need to perform culling here, that is done in @Text draw function - message->text.setCharacterSize(18 * Settings::getScaling()); + message->text.setCharacterSize(18.0f * Settings::getScaling()); message->text.setMaxWidth(backgroundSize.x - (AVATAR_DIAMETER + AVATAR_PADDING_SIDE) * Settings::getScaling()); message->text.setPosition(sf::Vector2f(floor(position.x + (AVATAR_DIAMETER + AVATAR_PADDING_SIDE) * Settings::getScaling()), floor(position.y))); message->text.setLineSpacing(LINE_SPACING); -- cgit v1.2.3