summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
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;