diff options
Diffstat (limited to 'src/render.cpp')
-rw-r--r-- | src/render.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/render.cpp b/src/render.cpp index c4718bf..d852b24 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -185,9 +185,7 @@ 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) { - wchar_t buffer[4096]; - utf8_to_wchar(buffer, sizeof(buffer) / sizeof(wchar_t), str); - sf::Text text(buffer, font, 40); + sf::Text text(sf::String::fromUtf8(str.begin(), str.end()), font, 40); sf::FloatRect rect; float scale; v2f_t offset; |