summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-14 17:58:12 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-14 17:58:12 +0100
commit0e27aac4f124efcd495469522706df8cc1ca5986 (patch)
tree728028364c231e0aba5110e6e2a0cef3995812aa /src/render.cpp
parent36a95838d17ffaee4020a2aba832af6636591df4 (diff)
Bring back the Polish translation.
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 2f1890e..c4718bf 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -185,7 +185,9 @@ void state_t::render(oriented_sprite_t *sprite, rectf_t bounds, float angle)
void state_t::render_text(v2f_t x, float height, std::string str,
text_align_t align, sf::Color color)
{
- sf::Text text(str, font, 40);
+ wchar_t buffer[4096];
+ utf8_to_wchar(buffer, sizeof(buffer) / sizeof(wchar_t), str);
+ sf::Text text(buffer, font, 40);
sf::FloatRect rect;
float scale;
v2f_t offset;