summaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-12-14 15:57:48 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-12-14 15:57:48 +0100
commitdf44f9344616e9d6e7009fcfedb6620087c1ff22 (patch)
treebf02c2a76b49dba9562f033137888d206f2be5e0 /src/ui.cpp
parent02fe1199884d1056a3282268a8c75b3f086bfc9d (diff)
Add lineHeightRatio to let text decide the line spacingHEADmaster
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 722eb1b..02b50f2 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -185,7 +185,7 @@ bool UI::radioButton(sf::RenderWindow *win, Graphics::TextureFont font,
}
win->draw(radio);
- Graphics::Text textGraph {font, text, size.x - 30, size.y};
+ Graphics::Text textGraph {font, text, 1.4, size.x - 30, size.y};
textGraph.setPosition(sf::Vector2f(pos) + sf::Vector2f{30, size.y/2});
win->draw(textGraph);