aboutsummaryrefslogtreecommitdiff
path: root/src/BodyItem.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-03 01:26:14 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-03 01:26:14 +0200
commit6fbd76171b1f8f357524de20009380a93ca9bbf9 (patch)
treec6ac00d9ad26151f6357bc9b0823cc4b93481ccd /src/BodyItem.cpp
parent8c4e3217bf3e3c675f181c34f79448ba036dfcaf (diff)
Add QM_FONT_SCALE environment variable to set font scale. Also add QM_SCALE to not have to rely on GDK_SCALE or xft.dpi
Diffstat (limited to 'src/BodyItem.cpp')
-rw-r--r--src/BodyItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BodyItem.cpp b/src/BodyItem.cpp
index bf6e45d..8fd5362 100644
--- a/src/BodyItem.cpp
+++ b/src/BodyItem.cpp
@@ -72,7 +72,7 @@ namespace QuickMedia {
void BodyItem::add_reaction(std::string text, void *userdata) {
sf::String str = sf::String::fromUtf8(text.begin(), text.end());
Reaction reaction;
- reaction.text = std::make_unique<Text>(std::move(str), false, std::floor(14 * get_ui_scale()), 0.0f);
+ reaction.text = std::make_unique<Text>(std::move(str), false, std::floor(14 * get_ui_scale() * get_font_scale()), 0.0f);
reaction.userdata = userdata;
reactions.push_back(std::move(reaction));
}